News for hackers. Stuff that matters.
Re:Looking at Unity made me understand the point of C++ coro... by spacechild1 on Wednesday April 01, 2026 @02:10PM (#47604423)
But that's not what you want. The context object should be freed when the associated operation finishes (either successfully or with an error), not when the parent goes out of scope. With coroutines I can simply put the context object on the stack and when the task finishes, the object automatically goes out of scope.

There are no comments on this comment yet.