Avatar
omochimetaru 9/24/2021 1:57 PM
むしろ、initしっぱなしで忘れるリスクのほうが、本当に止めたいダウンロードみたいな処理が出てきたときに、見逃すツケのほうが高くつきませんかねえ
1:58 PM
The initializers are marked with @discardableResult because the task itself will immediately execute the operation and run to completion when the handle is unused. This is a fairly common use case for fire-and-forget asynchronous operations.