diff --git a/Engine.Core/Systems/Yields/YieldExtensions.cs b/Engine.Core/Systems/Yields/YieldExtensions.cs new file mode 100644 index 0000000..efcfddc --- /dev/null +++ b/Engine.Core/Systems/Yields/YieldExtensions.cs @@ -0,0 +1,10 @@ +using System.Threading.Tasks; + +using static Engine.Core.WaitForTaskYield; + +namespace Engine.Core; + +public static class YieldExtensions +{ + public static WaitForTaskYield ToYield(this Task task, TaskCompletionStatus completionStatus = TaskCompletionStatus.Any) => new(task, completionStatus); +}