menu
94 tokens
Tasks
Tasks
Tasks
introduce Task for structured affine concurrency (same async/await model)
(Promise = managed class, Task = value type, Promise requires aliasable / copyable type)
Task<T>is consuming Worker-local completion with cancellation and scope ownershipevery started operation must be awaited, returned, or handed to a scope;
no-floating-promisesis denied by default