Comment

Comment by SteveLauC

> a task can yield, which, conceptually, creates a new piece of work that gets shoved onto the work queues (which is "resume that task"). You might not think of it as "this task is suspended and will be resumed later" as much as *"this piece of work is done and has spawned a new piece of work."*

Never thought of it that way, but it’s indeed true — a new task does get enqueued in that case. Thanks for the insight!

parent SteveLauC 1 year ago

No comments yet

Be the first to share your thoughts.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton