running function
Resolves true once the context runs, false if the signal aborts first.
import { running } from '@dioramajs/diorama/audio/graph'A suspended context would route a connected element to silence, so nothing connects before it runs.
function running(graph: AudioContext, signal: AbortSignal): Promise<boolean>Parameters
| Name | Type | Description |
|---|---|---|
graph | AudioContext | |
signal | AbortSignal |
Also exported from @dioramajs/audio/graph.
Defined in packages/audio/src/graph.ts.