Skip to content

Commit 8962bd7

Browse files
committed
Replace native DisposableStack globals with internal shims (#41)
* Replace native `DisposableStack` globals with internal shims * Add disposer shim tests for symbol aliases and disposal behavior - Verify fallback/use of runtime disposal symbols - Cover sync/async alias installation and descriptors - Test InternalDisposableStack and async disposer LIFO semantics - Assert shim-only resources are accepted and invalid resources throw
1 parent aa8dd93 commit 8962bd7

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

README.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -681,13 +681,11 @@ const value = await try$.run({
681681
})
682682
```
683683

684-
## When not to use tryharder
684+
## When not to use
685685

686-
- **Small scripts or one-off tasks** - Plain `try/catch` is often simpler when you do not need retries, cancellation, or orchestration.
687-
- **You already use an effect system or result abstraction** - If your codebase already has a consistent execution model, adding `tryharder` may be redundant.
688-
- **Your workflows are mostly straightforward Promise chains** - `all(...)` and `flow(...)` help when coordination matters; otherwise native composition may be clearer.
689-
- **Your team prefers explicit `Result` values everywhere** - `tryharder` centers execution wrappers, not a dedicated result data type.
690-
- **You do not want policy-driven execution behavior** - If retry and timeout semantics are unnecessary overhead, the abstraction may not pay for itself.
686+
When you can use [`Effect`](https://github.com/Effect-TS/effect) in your codebase.
687+
688+
Seriously, Effect is a much more powerful and complete solution.
691689

692690
## Contributing
693691

0 commit comments

Comments
 (0)