* Gets the fiber runtime flags.
()
| 365 | * Gets the fiber runtime flags. |
| 366 | */ |
| 367 | get runtimeFlags(): Effect.Effect<RuntimeFlags.RuntimeFlags> { |
| 368 | return this.ask((state, status) => { |
| 369 | if (FiberStatus.isDone(status)) { |
| 370 | return state.currentRuntimeFlags |
| 371 | } |
| 372 | return status.runtimeFlags |
| 373 | }) |
| 374 | } |
| 375 | |
| 376 | /** |
| 377 | * Returns the current `FiberScope` for the fiber. |