JanetDocsSourcePlaygroundTutorialsI'm Feeling luckyCommunityGitHub sign in

resume

core-api


    function

    (resume fib &opt x)

    Resume a new or suspended fiber `fib` and optionally pass in a 
    value `x` to `fib` that is then returned to the last yield in the 
    case of a pending fiber, or the argument to the dispatch function 
    in the case of a new fiber. Returns either the return result of 
    `fib`'s dispatch function, or the value from the next yield call in 
    `fib`.


0 examplesSign in to add an example
Loading...