mirror of
https://github.com/chylex/Minecraft-Phantom-Panel.git
synced 2026-05-04 00:03:08 +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;
|
|
}
|
|
}
|