Coroutines: Generators / Yield, Async / Await, and Streams


[Up] [Top]

Documentation for package ‘async’ version 0.3

Help Pages

as.list.iteror Gather all values emitted by iterators and channels.
as.promise.channel Gather all values emitted by iterators and channels.
as.vector.iteror Gather all values emitted by iterators and channels.
async Create an asynchronous task from sequential code.
await Create an asynchronous task from sequential code.
awaitNext Wait for the next value from a channel or stream.
channel An object representing a sequence of future values.
collect Gather all values emitted by iterators and channels.
collector Gather all values emitted by iterators and channels.
combine Combine several channels into one.
debugAsync Toggle single-step debugging for a coroutine.
delay Asynchronous pause.
format.coroutine Query / display coroutine properties and state.
gather Gather all values emitted by iterators and channels.
gen Create an iterator using sequential code.
getEnv Query / display coroutine properties and state.
getNode Query / display coroutine properties and state.
getNode.coroutine Query / display coroutine properties and state.
getOrig Query / display coroutine properties and state.
getState Query / display coroutine properties and state.
getState.async Query / display coroutine properties and state.
getState.generator Query / display coroutine properties and state.
getState.stream Query / display coroutine properties and state.
goto Coroutine switch with delimited goto.
graphAsync Draw a graph representation of a coroutine.
ilimit Limit the number of elements emitted by an iterator.
is.channel An object representing a sequence of future values.
iseq Iterator equivalent of seq.
iteror An efficient and compact iteration protocol.
iteror.default An efficient and compact iteration protocol.
iteror.function An efficient and compact iteration protocol.
nextOr An efficient and compact iteration protocol.
nextThen Receive values from channels by callback.
pausables Pausable functions.
run Execute a generator expression immediately, collecting yielded values.
stream Create an asynchronous iterator by writing sequential code.
subscribe Receive values from channels by callback.
yield Create an iterator using sequential code.
yieldFrom Create an iterator using sequential code.