Skip to content

Add cancellable async compatibility exports - #277

Merged
mahach666 merged 1 commit into
mainfrom
codex/issue-111-async-exports
Nov 19, 2026
Merged

mahach666 merged 1 commit into
mainfrom
codex/issue-111-async-exports

Conversation

@mahach666

Copy link
Copy Markdown
Collaborator

Summary

  • Add cancellable path and stream overloads for OBJ, GLB, IFC, viewpoint BCF/XML and the HTML viewer. OBJ and IFC also accept a TextWriter.
  • Run the existing compatibility formatters on a worker and forward destination writes and flushes through their async APIs with the cancellation token.
  • Commit path exports atomically and leave caller-owned streams and writers open. Keep GLB BIN staging file-backed.

Verification

  • Full Release suite on .NET 8 and .NET 10.
  • Tests cover pre-cancellation, cancellation during formatting and pending writes, preserving an existing path, and equivalence with synchronous output. BCF archives are also validated against the BCF 2.1 schemas.
  • Synchronous GLB benchmark measured a 16.17 ms median with byte-identical output. GLB size boundary tests pass.

Issue coverage

#271 supplied cancellable document reading and native NWC/JSON exports. #272 supplied clash cancellation and progress with before-run and mid-run tests. #276 completed assembly loading and its per-model progress. This PR adds the remaining document path and stream export overloads, preserves synchronous signatures and documents the new APIs.

Closes #111.

@mahach666
mahach666 merged commit 838745a into main Nov 19, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add cancellation and progress reporting (and async I/O overloads) for Open, exports, assembly loading and clash detection

1 participant