0.2.6 #49
@@ -55,7 +55,8 @@ extends Pipeable.Class() implements SubmittableForm<A, I, R, MA, ME, MR, MP> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
get run(): Effect.Effect<void> {
|
get run(): Effect.Effect<void> {
|
||||||
return this.runSemaphore.withPermits(1)(Stream.runForEach(
|
return this.runSemaphore.withPermits(1)(Effect.provide(
|
||||||
|
Stream.runForEach(
|
||||||
this.encodedValue.changes,
|
this.encodedValue.changes,
|
||||||
|
|
||||||
encodedValue => Lens.get(this.validationFiber).pipe(
|
encodedValue => Lens.get(this.validationFiber).pipe(
|
||||||
@@ -82,14 +83,15 @@ extends Pipeable.Class() implements SubmittableForm<A, I, R, MA, ME, MR, MP> {
|
|||||||
}),
|
}),
|
||||||
Lens.set(this.validationFiber, Option.none()),
|
Lens.set(this.validationFiber, Option.none()),
|
||||||
),
|
),
|
||||||
)).pipe(
|
))
|
||||||
|
),
|
||||||
Effect.tap(fiber => Lens.set(this.validationFiber, Option.some(fiber))),
|
Effect.tap(fiber => Lens.set(this.validationFiber, Option.some(fiber))),
|
||||||
Effect.andThen(Fiber.join),
|
Effect.andThen(Fiber.join),
|
||||||
Effect.forkScoped,
|
Effect.ignore,
|
||||||
)
|
|
||||||
),
|
),
|
||||||
Effect.provide(this.context),
|
|
||||||
),
|
),
|
||||||
|
|
||||||
|
this.context,
|
||||||
))
|
))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user