Visual Effect - Interactive Effect Playground
effect.kitlangton.com · 765 words · saved by 2 readers
Interactive examples of TypeScript's beautiful Effect library
CONSTRUCTORS Effect.succeed Create an effect that always succeeds with a given value value const value = Effect.succeed(42) Effect.fail Create an effect that represents a recoverable error error const error = Effect.fail("Kaboom!") Effect.die Create an effect that terminates with an unrecoverable defect death const death = Effect.die(new Error("FATAL: System corrupted")) Effect.sync Create an effect from a synchronous side-effectful computation random const random = Effect.sync(() => Math.random()) Effect.promise Create an effect from an asynchronous computation guaranteed…
saved by
related reading
- TypeScript Structured Concurrencythecandidstartup.org
- Everything is Fertilenickcammarata.com
- You Might Not Need an Effect – Reactreact.dev
- Algebraic Effects for the Rest of Us — overreactedoverreacted.io
- Bireactive Programmingorionreed.github.io
- Shadersshaders.com
- TextFXtextfx.withgoogle.com
- JS cheat sheetprogramming-idioms.org
- Notes on structured concurrency, or: Go statement considered harmful - njs blogvorpus.org
- Synchronizing with Effects – Reactreact.dev
- Reading 15: Promisesweb.mit.edu
- GitHub - GetStream/effects-library: The Effects Library allows developers to create sophisticated and realistic particle systems such as snow, fire, rain, confetti, fireworks, and smoke with no or minimal effort.github.com