Skip to content

Commit

Permalink
add a task.yield for a cached model to let progress happen (#204)
Browse files Browse the repository at this point in the history
  • Loading branch information
adamhathcock authored Jan 14, 2025
1 parent 4370af5 commit b3c6a75
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Speckle.Sdk/Serialisation/V2/Receive/ObjectLoader.cs
Original file line number Diff line number Diff line change
@@ -43,6 +43,9 @@ CancellationToken cancellationToken
{
//assume everything exists as the root is there.
var allChildren = ClosureParser.GetChildrenIds(rootJson).ToList();
//this probably yields away from the Main thread to let host apps update progress
//in any case, this fixes a Revit only issue for this situation
await Task.Yield();
return (rootJson, allChildren);
}
}

0 comments on commit b3c6a75

Please sign in to comment.