Get Resolvable Sync #2

This commit is contained in:
Sebastian Seedorf
2020-11-24 12:37:59 +01:00
parent 88ca594900
commit 924dfc7def
2 changed files with 8 additions and 0 deletions

View File

@@ -49,6 +49,12 @@ class FetchOnce {
}
});
}
getDataOrUndefined() {
return this.data;
}
getErrorOrUndefined() {
return this.error;
}
isFinished() {
return this.state === ResolvableState.DONE || this.state === ResolvableState.ERROR;
}