From 9ed9b314d1ca75bdd16b3a9c9f2823e57cd7f643 Mon Sep 17 00:00:00 2001 From: Nytra <14206961+Nytra@users.noreply.github.com> Date: Sat, 20 Jul 2024 13:29:49 +0100 Subject: [PATCH] Improve AsyncWait to not freeze the whole app --- ProjectObsidian/ProtoFlux/Flow/AsyncWait.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ProjectObsidian/ProtoFlux/Flow/AsyncWait.cs b/ProjectObsidian/ProtoFlux/Flow/AsyncWait.cs index acc225a..5c3b086 100644 --- a/ProjectObsidian/ProtoFlux/Flow/AsyncWait.cs +++ b/ProjectObsidian/ProtoFlux/Flow/AsyncWait.cs @@ -1,5 +1,6 @@ using System; using System.Threading.Tasks; +using FrooxEngine; using ProtoFlux.Core; using ProtoFlux.Runtimes.Execution; namespace ProtoFlux.Runtimes.Execution.Nodes.Obsidian.Flow @@ -40,10 +41,11 @@ protected override async Task RunAsync(ExecutionContext context) { throw new ExecutionAbortedException(base.Runtime as IExecutionRuntime, this, TimedOut.Target, isAsync: true); } + + await default(NextUpdate); } return OnDone.Target; } } -} - +} \ No newline at end of file