JanetDocsPlaygroundI'm feeling luckyGitHub sign in

coro



    macro
    boot.janet on line 583, column 1

    (coro & body)

    A wrapper for making fibers. Same as (fiber/new (fn [] ;body) :yi).


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