Cool idea!
However, I see it's implied that tasks should only be enqueued on the main thread (or a single-thread in general). But I think that it should be written explicitly.
I'm aware that tasks can execute code in different threads; I specifically mean enqueuing new tasks via queue.push should all happen from a single-thread (.e.g main thread).
Cool idea!
However, I see it's implied that tasks should only be enqueued on the main thread (or a single-thread in general). But I think that it should be written explicitly.
I'm aware that tasks can execute code in different threads; I specifically mean enqueuing new tasks via
queue.pushshould all happen from a single-thread (.e.g main thread).