The source to wait on, which can be:
"uneventful.next"
method returning a Yielding
(in which case the result will be the the result of calling that method)(Note: if the supplied source is a function with a non-zero .length
, it is
assumed to be a Source.)
a Yieldable that when processed with yield *
in a job, will return
the triggered event, or signal value. An error is thrown if event stream
throws or closes early, or the signal throws.
Wait for and return the next value (or error) from a data source (when processed with
yield *
within a Job).This differs from until() in that it waits for the next value (truthy or not!), and it never resumes immediately for signals, but instead waits for the signal to change. (Also, it does not support zero-argument functions, unless you wrap them with cached() first.)