/** * Acts on the children of this fiber (collected into a single fiber), * guaranteeing the specified callback will be invoked, whether or not this * effect succeeds. * * @tsplus static effect/core/io/Effect.Aspects ensuringChild * @tsplus pipeable effect/core/io/Effect ensuringChild */ export function ensuringChild(f: (_: Fiber>) => Effect) { return (self: Effect): Effect => self.ensuringChildren((children) => f(Fiber.collectAll(children))) }