0.1.17 #18

Merged
Thilawyn merged 37 commits from next into master 2024-09-07 20:56:30 +02:00
Showing only changes of commit e4975bafdf - Show all commits

18
src/Layers/trpc/tests.ts Normal file
View File

@@ -0,0 +1,18 @@
import { Console, Effect, identity } from "effect"
const expansiveComputation = Effect.gen(function*() {
yield* Console.log("executing")
return "value"
}).pipe(
Effect.cached,
)
await Effect.gen(function*() {
const cached = yield* expansiveComputation
yield* Console.log(yield* cached)
yield* Console.log(yield* cached)
yield* Console.log(yield* cached)
}).pipe(
Effect.runPromise
)