Grabs the next value emitted from source. By default waits up to a maximum of one second. Handles subscribing and unsubscribing.
source
const value = await Rx.takeNextValue(source); Copy
const value = await Rx.takeNextValue(source);
Throws an error if the source closes without a value or the timeout is reached.
Grabs the next value emitted from
source
. By default waits up to a maximum of one second. Handles subscribing and unsubscribing.Throws an error if the source closes without a value or the timeout is reached.