@@ -29,10 +29,10 @@ Effect.gen(function*() {
|
||||
Lens.focusObjectOn("users"),
|
||||
Lens.focusArrayAt(0),
|
||||
Lens.focusObjectOn("name"),
|
||||
Lens.catchAllRead(() => Lens.makeLazy({
|
||||
sourceGet: Effect.succeed("User not found"),
|
||||
sourceChanges: Stream.make("User not found"),
|
||||
sourceCommit: () => Console.log("Test"),
|
||||
Lens.catchAllRead(() => Lens.make({
|
||||
get: Effect.succeed("User not found"),
|
||||
changes: Stream.make("User not found"),
|
||||
commit: () => Console.log("Test"),
|
||||
withLock: Effect.unsafeMakeSemaphore(1).withPermits(1),
|
||||
})),
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user