mirror of
https://github.com/chylex/Minecraft-Phantom-Panel.git
synced 2025-09-30 23:02:48 +02:00
9 lines
227 B
C#
9 lines
227 B
C#
namespace Phantom.Utils.Tasks;
|
|
|
|
public static class CancellationTokenExtensions {
|
|
public static bool Check(this CancellationToken cancellationToken) {
|
|
cancellationToken.ThrowIfCancellationRequested();
|
|
return true;
|
|
}
|
|
}
|