\Core\MapCoroutineMap

Summary

Methods
Properties
Constants
addCoroutine()
removeCoroutine()
getCoroutine()
current()
resume()
exception()
$coroutineMap
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$coroutineMap

$coroutineMap : \Core\Std\Coroutine[]

Type

Coroutine[]

Methods

addCoroutine()

addCoroutine(\Core\Std\Coroutine  $coroutine) : void

Parameters

\Core\Std\Coroutine $coroutine

removeCoroutine()

removeCoroutine(\Core\Std\Coroutine  $coroutine) : void

Parameters

\Core\Std\Coroutine $coroutine

getCoroutine()

getCoroutine(string  $hash) : \Core\Std\Coroutine|null

Parameters

string $hash

Returns

\Core\Std\Coroutine|null —

current()

current() : \Core\Std\Coroutine|null

Returns

\Core\Std\Coroutine|null —

resume()

resume(string  $hash, mixed  $data) : mixed

Parameters

string $hash
mixed $data

Throws

\Throwable

Returns

mixed —

exception()

exception(string  $id, \Throwable  $exception) : void

Parameters

string $id
\Throwable $exception