I need to wait until the tasks I’ve just added to the TaskStore have their references fully updated.
I noticed that both the DependencyStore and EventStore have an addAsync() method, which allows waiting for this kind of asynchronous processing.
However, the TaskStore doesn’t seem to provide an equivalent addAsync() method.
What’s the recommended way to ensure that the newly added tasks are fully initialized and all references are up to date before proceeding with further operations?
Use the Project commit API to wait for the engine to finish after adding tasks. TaskStore doesn’t have addAsync, so do the add() then await project.commitAsync(). Example: