Helper module that enable to manage the local memory state of each thread.
For a sample, see sample/src/Advanced.elm and its live demo.
Construct an initial instance of LocalMemory.
Convert into list. The elements in this list are ordered by the time the thread was created, from newest to oldest.
Run a child Block in a new thread by Thread.Procedure.async, assign a local memory for the thread, and free the local memory when the thread is end.
The second argument is initial value of the local memory.
Run a child Block by Thread.Procedure.block, assign a local memory for the thread, and free the local memory when the thread is end.
The second argument is initial value of the local memory.
Similar to asyncChild, but async can also handle parent Procedures in the new thread.
Similar to blockChild, but block can also handle parent Procedures in the new thread.
Core type to store local memory states.