Resumable and copyable functions (a.k.a. coroutines) for Julia, with optional function-specific globals. See the docs for example usage.
Used in the Turing probabilistic programming language to implement various particle-based inference methods, for example, those in AdvancedPS.jl.
ResumableFunctions.jl provides resumable functions similar to Libtask's, but lacks copying.