0.2.0 • Published 2 years ago

effective.ts v0.2.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

effective.ts

A library for writing safe, concurrent, fault-tolerant programs in TypeScript.

Key Features

  • Functional design
    Effective.ts introduces an IO monad, as used in Haskell and Cats Effect (Scala). This allows the manipulation of programs as values, using pure functions. This has a "fluent" method chaining interface, to make it idiomatic to TypeScript.

  • Typed errors
    The IO type tracks the possible errors which can be raised by an action, so you know exactly which error cases you need to handle. No nasty surprises!

  • Concurrency and cancellation
    Launch lightweight async fibers (green threads), with support for early cancellation. Easily run actions in parallel or in sequence.

  • Fault-tolerance
    In the real world, things fail, so effective.ts has built-in support for timeouts and retries with exponential backoff.

API Reference

API reference documentation is hosted here.