5 ms·
In a push-based approach, can you bundle state changes into a transaction and recompute derived state when the transaction ends and all inputs have finished cha
by nyanpasu64 3y ago
In a push-based approach, can you bundle state changes into a transaction and recompute derived state when the transaction ends and all inputs have finished changing?
- naasking 3y agoThat's effectively what I suggest in the other replies. You separate internal from external callbacks, and run the internal ones first and enqueue the set of external ones, then run those at the end. All subsequent externally-driven changes should be enqueued until the next "turn", ie. after all changes have settled. This preserves transactional semantics.