Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/briancavalier/fx-ts
/ functions
Functions
59 in github.com/briancavalier/fx-ts
⨍
Functions
59
◇
Types & classes
7
↓ 17 callers
Function
doFx
(f: (c: C) => Generator<Y, A, unknown>)
src/fx.ts:34
↓ 10 callers
Function
pure
(a: A)
src/fx.ts:60
↓ 10 callers
Function
runFx
(fx: Fx<C, A>, c: C, k: (r: A) => Cancel = () => uncancelable)
src/fx.ts:72
↓ 9 callers
Function
op
(env: Env<C, A>)
src/fx.ts:47
↓ 9 callers
Function
zip
(...fxs: Fxs)
src/array.ts:13
↓ 6 callers
Function
println
(s: string)
examples/fp-to-the-max-1.ts:22
↓ 5 callers
Function
resume
(run: (k: (a: A) => Cancel) => Cancel)
src/env.ts:20
↓ 4 callers
Function
async
(run: AsyncTask<A>)
src/async.ts:19
↓ 4 callers
Function
fail
(e: Error)
src/fail.ts:10
↓ 4 callers
Function
sync
(run: () => A)
src/sync.ts:13
↓ 3 callers
Function
ask
(prompt: string)
examples/fp-to-the-max-1.ts:26
↓ 3 callers
Function
attempt
(fx: Fx<C, A>)
src/fail.ts:12
↓ 3 callers
Method
next
()
src/fx.ts:68
↓ 3 callers
Function
timeout
(ms: number, fx: Fx<C, A>)
src/async.ts:33
↓ 2 callers
Function
catchAll
(fx: Fx<C1, A>, f: (e: Error) => Fx<C2, B>)
src/fail.ts:15
↓ 2 callers
Function
get
()
src/fx.ts:90
↓ 2 callers
Function
getJson
(url: string, headers: { [name: string]: string } = {})
examples/lambda-pets/src/infrastructure/http.ts:22
↓ 2 callers
Function
interpretResponse
(url: string, [response, body]: Response)
examples/lambda-pets/src/infrastructure/http.ts:34
↓ 2 callers
Function
tryGetAdoptablePetsNear
(ip: string)
examples/lambda-pets/src/application/pets.ts:27
↓ 2 callers
Function
wrapHtml
(body: string)
examples/lambda-pets/src/application/render.ts:15
↓ 1 callers
Function
addAwait
(x: number)
bench/loop.ts:25
↓ 1 callers
Function
addFx
(x: number)
bench/loop.ts:5
↓ 1 callers
Function
cancelAll
()
src/async.ts:53
↓ 1 callers
Function
checkAnswer
(secret: number, guess: number)
examples/fp-to-the-max-1.ts:45
↓ 1 callers
Function
checkContinue
(name: string)
examples/fp-to-the-max-1.ts:70
↓ 1 callers
Function
delay
(ms: number)
src/async.ts:28
↓ 1 callers
Function
delayFail
(ms: number)
src/async.ts:36
↓ 1 callers
Function
embed
(fx: Fx<C1, A>, f: (c: C0) => C1)
src/fx.ts:104
↓ 1 callers
Function
getAdoptablePetsNear
(ip: string)
examples/lambda-pets/src/application/pets.ts:20
↓ 1 callers
Function
getLocation
(host: string)
examples/lambda-pets/src/infrastructure/ipstack.ts:14
↓ 1 callers
Function
getPets
(l: GeoLocation, radiusMiles: number)
examples/lambda-pets/src/infrastructure/petfinder.ts:38
↓ 1 callers
Function
loopAwait
(n: number)
bench/loop.ts:27
↓ 1 callers
Function
loopFx
(n: number)
bench/loop.ts:7
↓ 1 callers
Function
loopPromise
(n: number)
bench/loop.ts:17
↓ 1 callers
Function
play
(name: string, min: number, max: number)
examples/fp-to-the-max-1.ts:50
↓ 1 callers
Function
postJson
(url: string, a: A, headers: { [name: string]: string } = {})
examples/lambda-pets/src/infrastructure/http.ts:28
↓ 1 callers
Function
race
(fx1: Fx<C1, A>, fx2: Fx<C2, B>, ...fxs: Fxs)
src/async.ts:42
↓ 1 callers
Function
raceArray
(fxs: Fxs)
src/async.ts:45
↓ 1 callers
Function
randomInt
(min: number, max: number)
examples/fp-to-the-max-1.ts:31
↓ 1 callers
Function
readResponse
(m: IncomingMessage)
examples/lambda-pets/src/infrastructure/http.ts:67
↓ 1 callers
Function
renderError
(e: Error)
examples/lambda-pets/src/application/render.ts:3
↓ 1 callers
Function
renderPets
({ location, radiusMiles, pets }: AdoptablePets)
examples/lambda-pets/src/application/render.ts:8
↓ 1 callers
Function
resumeNow
(value: A)
src/env.ts:17
↓ 1 callers
Function
stepFx
(i: Iterator<Env<C, unknown>, A, unknown>, ir: IteratorResult<Env<C, unknown>, A>, c: C, k: (r: A) => Cancel)
src/fx.ts:78
↓ 1 callers
Function
tryAsync
(tryRun: TryAsyncTask<A>)
src/async.ts:21
Method
[Symbol.iterator]
()
src/fx.ts:17
Method
[Symbol.iterator]
()
src/fx.ts:41
Method
[Symbol.iterator]
()
src/fx.ts:53
Method
[Symbol.iterator]
()
src/fx.ts:67
Function
addPromise
(x: number)
bench/loop.ts:15
Method
constructor
(public readonly gen: (c: C) => Generator<Y, A, unknown>)
src/fx.ts:40
Method
constructor
(public readonly env: Env<C, A>)
src/fx.ts:52
Method
constructor
(public readonly value: A)
src/fx.ts:66
Function
handler
(s: string)
examples/echo-console.ts:25
Function
handler
examples/lambda-pets/handler.ts:11
Function
runResume
(ra: Resume<A>, k: (a: A) => Cancel)
src/env.ts:30
Function
trySync
(run: () => A)
src/sync.ts:15
Function
uncancelable
()
src/env.ts:15
Function
use
(fx: Fx<CR, A>, cp: CP)
src/fx.ts:99