You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In Rust, cancellation is implicit: dropping a future cancels it. In JavaScript, promises cannot be "dropped"; they run to completion unless the underlying operation checks an `AbortSignal`. Any function in antiox that wraps or races user-provided async work must accept an optional `AbortSignal` so callers can cancel it, mirroring how Rust callers would simply drop the future.
17
+
14
18
## API Reference
15
19
16
20
Before implementing or modifying any module, always look up the corresponding Tokio or Rust std docs first to verify correct type names, method signatures, and semantics:
@@ -58,7 +62,7 @@ pnpm test # Run tests
58
62
59
63
## Documentation
60
64
61
-
- Keep `README.md` up to date when adding or changing modules.
65
+
- Keep `README.md` up to date when adding or changing modules. Code examples in README must reflect the current API signatures.
62
66
- Keep `COMPATIBILITY.md` up to date when adding, removing, or modifying any API. Every exported function, class, and method must be tracked against its Rust equivalent. Mark new items as implemented, and document why anything is intentionally skipped.
0 commit comments