See the following minimal example: ```julia using Libtask function f() t = 0; while true t[2] = 0 produce(t) end end t = Task(f) consume(t) ```