mirror of
https://github.com/chylex/Minecraft-Phantom-Panel.git
synced 2024-11-23 19:42:51 +01:00
12 lines
386 B
C#
12 lines
386 B
C#
namespace Phantom.Utils.Tasks;
|
|
|
|
public static class AsyncTasks {
|
|
public static TaskCompletionSource CreateCompletionSource() {
|
|
return new TaskCompletionSource(TaskCreationOptions.RunContinuationsAsynchronously);
|
|
}
|
|
|
|
public static TaskCompletionSource<T> CreateCompletionSource<T>() {
|
|
return new TaskCompletionSource<T>(TaskCreationOptions.RunContinuationsAsynchronously);
|
|
}
|
|
}
|