-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
133 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,6 +25,12 @@ | |
|
||
use Generator; | ||
|
||
/** | ||
* @author VennDev <[email protected]> | ||
* @package vennv\vapm | ||
* | ||
* This interface is used to create a await group object that can be used to wait for a group of coroutines to complete. | ||
*/ | ||
interface AwaitGroupInterface | ||
{ | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,6 +25,12 @@ | |
|
||
use Generator; | ||
|
||
/** | ||
* @author VennDev <[email protected]> | ||
* @package vennv\vapm | ||
* | ||
* This interface is used to create a deferred object that can be used to get the result of a coroutine. | ||
*/ | ||
interface DeferredInterface | ||
{ | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,6 +25,13 @@ | |
|
||
use Generator; | ||
|
||
/** | ||
* @author VennDev <[email protected]> | ||
* @package vennv\vapm | ||
* | ||
* This class is used to create a mutex object that can be used to synchronize access to shared resources. | ||
* Note: this just for coroutine, if you want to use it in other places, you need to implement it yourself. | ||
*/ | ||
interface MutexInterface | ||
{ | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,6 +31,12 @@ | |
use function is_callable; | ||
use function microtime; | ||
|
||
/** | ||
* @author VennDev <[email protected]> | ||
* @package vennv\vapm | ||
* | ||
* This interface is used to create a promise object that can be used to get the result of a coroutine. | ||
*/ | ||
interface PromiseInterface | ||
{ | ||
|
||
|
Oops, something went wrong.