JanetDocsPlaygroundI'm feeling luckyGitHub sign in

coro



    macro
    boot.janet on line 629, column 1

    (coro & body)

    A wrapper for making fibers that may yield multiple values 
    (coroutine). Same as `(fiber/new (fn [] ;body) :yi)`.


See also:fiber/new1 exampleSign in to add an example
Loading...
(seq [v :in (coro
                (yield :hi)
                (yield :bye))]
    v)
# => @[:hi :bye]
pepePlayground