\ PhpWasmSyncFiber

Summary

Methods
Properties
Constants
__construct
start
isStarted
isSuspended
isRunning
isTerminated
resume
throw
getReturn
getCurrent
suspend
handler
No public constants found
No protected methods found
No protected properties found
No protected constants found
No private methods found
callable
result
started
No private constants found

Properties

$handler

$handler : callable|null

answers suspend() inline while a rewritten driver loop is running (canvas); null otherwise

Type

callable|null —

$callable

$callable : callable

Type

callable —

$result

$result : mixed

Type

mixed —

$started

$started : bool

Type

bool

Methods

__construct()

__construct(callable  $callable) : mixed

Parameters

callable $callable

Returns

mixed —

start()

start(mixed  ...$args) : mixed

Parameters

mixed $args variadic

Returns

mixed —

isStarted()

isStarted() : bool

Returns

bool —

isSuspended()

isSuspended() : bool

Returns

bool —

isRunning()

isRunning() : bool

Returns

bool —

isTerminated()

isTerminated() : bool

Returns

bool —

resume()

resume(mixed  $value = null) : mixed

Parameters

mixed $value

Returns

mixed —

throw()

throw(\Throwable  $e) : mixed

Parameters

\Throwable $e

Returns

mixed —

getReturn()

getReturn() : mixed

Returns

mixed —

getCurrent()

getCurrent() : ?object

Returns

?object —

suspend()

suspend(mixed  $value = null) : mixed

Parameters

mixed $value

Returns

mixed —