new AsyncObject()
An abstract object that handles state and provides recallable open and close methods.
Properties:
Name | Type | Description |
---|---|---|
loading |
Boolean | |
closing |
Boolean | |
loaded |
Boolean |
- Source:
Methods
(private) __close() → {Promise}
Close the object (without a lock).
- Source:
Returns:
- Type
- Promise
(private) __open() → {Promise}
Open the object (without a lock).
- Source:
Returns:
- Type
- Promise
(private) _close() → {Promise}
Close the object.
- Source:
Returns:
- Type
- Promise
(private) _open() → {Promise}
Initialize the object.
- Source:
Returns:
- Type
- Promise
close() → {Promise}
Close the object (recallable).
- Source:
Returns:
- Type
- Promise
destroy() → {Promise}
Close the object (recallable).
- Source:
Returns:
- Type
- Promise
open() → {Promise}
Open the object (recallable).
- Source:
Returns:
- Type
- Promise