( self: Layer<ROut, E, RIn> )
| 739 | * @since 2.0.0 |
| 740 | */ |
| 741 | export const build = <RIn, E, ROut>( |
| 742 | self: Layer<ROut, E, RIn> |
| 743 | ): Effect<Context.Context<ROut>, E, RIn | Scope.Scope> => |
| 744 | core.withFiber((fiber) => |
| 745 | buildWithMemoMap( |
| 746 | self, |
| 747 | CurrentMemoMap.forkOrCreate(fiber.context), |
| 748 | Context.getUnsafe(fiber.context, Scope.Scope) |
| 749 | ) |
| 750 | ) |
| 751 | |
| 752 | /** |
| 753 | * Builds a layer using an explicit scope. |