/** * Provides the stream with the single service it requires. If the stream * requires multiple services use `provideEnvironment` instead. * * @tsplus static effect/core/stream/Stream.Aspects provideService * @tsplus static effect/core/stream/Stream provideService */ export function provideService(tag: Tag, service: T1) { return (self: Stream): Stream, E, A> => Stream.environmentWithStream((env: Env>) => self.provideEnvironment(env.add(tag, service) as Env) ) }