mirror of
https://github.com/BepInEx/dotnet-runtime.git
synced 2026-11-23 03:39:35 -10:00
Like TaskCompletionSource, this RendezvousAwaitable allows for a result or error to be passed from a producer to a consumer, with a consumer awaiting the object and a producer setting the result/error into it. It may be reused any number of times (serially), avoiding having to allocate a new TaskCompletionSource/Task for each operation. Commit migrated from https://github.com/dotnet/corefx/commit/43437d20c4523d15df818fde5ccbc64282244fe1