WutheringWaves/KcpSharp/NetstandardShim/TaskCompletionSource.cs
2024-02-08 00:41:39 +03:00

11 lines
206 B
C#

#if NEED_TCS_SHIM
namespace System.Threading.Tasks
{
internal class TaskCompletionSource : TaskCompletionSource<bool>
{
public void TrySetResult() => TrySetResult(true);
}
}
#endif