Commit 161a69d
Sync constructor (#591)
* wip
* checkpoint
* tests pass now
* add safe close api on core and move replicator there
* more stuff in core
* all hooks live in core
* inline replicator
* premerge
* no need to skip
* add static helper for making core cores
* bye bye non-sparse mode
* Core manages replicator lifecycle (#592)
* state unref is sync
* core closes storage
* replicator no longer needs session
* remove force close from session
* fix bad condition
* core being set is invariant
* remove stale method
* query sessions on underlying core
* move autoClose onto Core
* rename close to destroy
* core destroys state
* preload is now simply a promise
* preload promise can return opts
* no need to check if state is active
* add onidle hook
* idle waits for mutex to be free also
* remove from option
* exclusive sessions
* always emit close
* fix test
* pass userdata to create for atomicity
* core always refs default state
* session explicitly refs state
---------
Co-authored-by: Christophe Diederichs <[email protected]>
Co-authored-by: Christophe Diederichs <[email protected]>1 parent de5520e commit 161a69d
21 files changed
+606
-1551
lines changedLarge diffs are not rendered by default.
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
1 | 2 | | |
2 | 3 | | |
3 | 4 | | |
| |||
89 | 90 | | |
90 | 91 | | |
91 | 92 | | |
92 | | - | |
| 93 | + | |
93 | 94 | | |
94 | 95 | | |
95 | 96 | | |
| |||
178 | 179 | | |
179 | 180 | | |
180 | 181 | | |
181 | | - | |
| 182 | + | |
182 | 183 | | |
183 | 184 | | |
184 | 185 | | |
| |||
0 commit comments