mirror of
https://github.com/MikuLeaks/KianaBH3.git
synced 2025-12-13 21:34:43 +01:00
Init enter game
This commit is contained in:
12
KcpSharp/Base/NetstandardShim/CancellationTokenShim.cs
Normal file
12
KcpSharp/Base/NetstandardShim/CancellationTokenShim.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
#if NEED_CANCELLATIONTOKEN_SHIM
|
||||
namespace System.Threading
|
||||
{
|
||||
internal static class CancellationTokenShim
|
||||
{
|
||||
public static CancellationTokenRegistration UnsafeRegister(this CancellationToken cancellationToken, Action<object?> callback, object? state)
|
||||
=> cancellationToken.Register(callback, state);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user