Skip to content

Commit 90bee1d

Browse files
Lazy Timing and Async Sockets
- move poll-tasks polling function from stream to regular function - timers no longer interact with the reactor and are evaluated on each loop - async operations that interact with the reactor do so by registering with the global Reactor - Added Global reactor - Added asynchronous socket connection - removed current example files, they will be introduced later
1 parent c5da132 commit 90bee1d

File tree

14 files changed

+171
-2668
lines changed

14 files changed

+171
-2668
lines changed

Cargo.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,10 @@ edition = "2021"
88
[dependencies]
99
futures = "0.3.30"
1010
crossbeam = "0.8.4"
11+
dashmap = "6.1.0"
12+
lazy_static = "1.5.0"
1113
wit-bindgen-rt = { version = "0.30.0", features = ["bitflags"] }
14+
autoincrement = { version = "1", features = ["derive", "async"] }
1215

1316

1417
[package.metadata.component]
@@ -17,4 +20,4 @@ package = "component:wasm-runtime"
1720
[package.metadata.component.target.dependencies]
1821
"wasi:io" = {path = "wit/deps/io"}
1922
"wasi:clocks" = {path = "wit/deps/clocks"}
20-
"wasi:sockets" = {path = "wit/deps/sockets"}
23+
"wasi:sockets" = {path = "wit/deps/sockets"}

0 commit comments

Comments
 (0)