WutheringWaves/KcpSharp/NetstandardShim/TaskCompletionSource.cs

12 lines
206 B
C#
Raw Normal View History

2024-02-07 21:41:39 +00:00
#if NEED_TCS_SHIM
namespace System.Threading.Tasks
{
internal class TaskCompletionSource : TaskCompletionSource<bool>
{
public void TrySetResult() => TrySetResult(true);
}
}
#endif