You are here

function coroutine in Lockr 7.3

Parameters

callable $generatorFn:

Return value

PromiseInterface

See also

Coroutine

File

vendor/guzzlehttp/promises/src/functions.php, line 454

Namespace

GuzzleHttp\Promise

Code

function coroutine(callable $generatorFn) {
  return new Coroutine($generatorFn);
}