Get Resolvable Sync #2
This commit is contained in:
@@ -49,6 +49,12 @@ class FetchOnce {
|
||||
}
|
||||
});
|
||||
}
|
||||
getDataOrUndefined() {
|
||||
return this.data;
|
||||
}
|
||||
getErrorOrUndefined() {
|
||||
return this.error;
|
||||
}
|
||||
isFinished() {
|
||||
return this.state === ResolvableState.DONE || this.state === ResolvableState.ERROR;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user