/** * Builds this layer and uses it until it is interrupted. This is useful when * your entire application is a layer, such as an HTTP server. * * @tsplus getter effect/core/io/Layer launch */ export function launch(self: Layer): Effect { return Effect.scoped( Effect.scopeWith((scope) => self.buildWithScope(scope)) > Effect.never ) }