Whenever ready
A promise that resolves when a value is set.
Install
npm install whenever-ready
Usage
const WheneverReady = ;const wReady = ; wReady; // Listen for readiness.wReadyready = true; // Set as ready.
API
class
WheneverReady(ready?)
ready
Type: boolean
Default: false
The initial readiness value.
instance
WheneverReady
ready
Type: boolean
Default: false
The readiness.
when()
Returns: Promise
Returns a promise that will resolve when ready
is true.