Further update to reflect a conversation with @henrymercer
This commit is contained in:
parent
6e1dab28b6
commit
adb28963c0
21 changed files with 131 additions and 79 deletions
|
|
@ -899,6 +899,9 @@ export async function tryGetFolderBytes(
|
|||
* Run a promise for a given amount of time, and if it doesn't resolve within
|
||||
* that time, call the provided callback and then return undefined.
|
||||
*
|
||||
* Note that this does NOT cancel the original promise, so that promise will
|
||||
* continue in the background even after the timeout has expired.
|
||||
*
|
||||
* @param timeoutMs The timeout in milliseconds.
|
||||
* @param promise The promise to run.
|
||||
* @param onTimeout A callback to call if the promise times out.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue