Cysharp / UniTask

Provides an efficient allocation free async/await integration for Unity.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can I reuse UniTaskCompletionSource?

kenofori opened this issue · comments

Hi there,

Can i reuse UniTaskCompletionSource instance? if not then what would be better garbage generation and performance wise? Callback approach or async await approach.

Please advise

You can use UniTaskCompletionSourceCore or AutoResetUniTaskCompletionSource.