21.5 Export and callbacks
Export attributes and callback registration for native hosts.
Export and callbacks
Hosting Beskid from outside uses Export and callbacks—export attributes, callback registration, and call shapes that must not alias runtime builtins.
If your diagram has arrows from JavaScript to fibers to C# to Beskid, stop and draw a simpler diagram.
Design one boundary at a time
Section titled “Design one boundary at a time”Write down which side owns startup, which side invokes the callback, and what data crosses each call. Then verify that shape against the export and callbacks standard and the execution ABI and host domain. Keeping the boundary small makes ownership and failure handling reviewable.