You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The callback would be called if the coroutine ticks after terminateOnNextTick() has been called, rather than attaching a handler directly to the strand's terminate event.
Something like this may allow some of the kernel API to be implemented more concisely as coroutines.
The text was updated successfully, but these errors were encountered:
$coroutine = function () {
yield Recoil::finally_(function ($exception) {});
}
Where $exception is set to the exception that is causing the stack unwind, or StrandTerminateException on termination. The exception would be null if the coroutine returned a value normally.
Because there is no way to force-close a generator,
finally
blocks can not (necessarily) be relied upon for deterministic execution.The callback would be called if the coroutine ticks after
terminateOnNextTick()
has been called, rather than attaching a handler directly to the strand'sterminate
event.Something like this may allow some of the kernel API to be implemented more concisely as coroutines.
The text was updated successfully, but these errors were encountered: