Skip to content

Commit

Permalink
Merge pull request #50 from Nytra/main
Browse files Browse the repository at this point in the history
Improve AsyncWait to not freeze the whole app
  • Loading branch information
Xlinka authored Jul 20, 2024
2 parents ce1d2ad + 9ed9b31 commit 01f10a3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions ProjectObsidian/ProtoFlux/Flow/AsyncWait.cs
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -40,10 +41,11 @@ protected override async Task<IOperation> RunAsync(ExecutionContext context)
{
throw new ExecutionAbortedException(base.Runtime as IExecutionRuntime, this, TimedOut.Target, isAsync: true);
}

await default(NextUpdate);
}

return OnDone.Target;
}
}
}

}

0 comments on commit 01f10a3

Please sign in to comment.