File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -279,7 +279,7 @@ complexity, especially when part of it is reflected in external code:
279
279
### Application Initiated Async Operations
280
280
281
281
* Use the Future / State Pattern.
282
- * Add a `*Result ()` method for each async operation method to allow the caller
282
+ * Add a `*LastResult ()` method for each async operation method to allow the caller
283
283
to poll and not save state.
284
284
285
285
e.g.
288
288
// Start async operation.
289
289
Future<SignInWithCrendentialResult> SignInWithCredential(...);
290
290
// Get the result of the pending / last async operation for the method.
291
- Future<SignInWithCrendentialResult> GetSignInWithCredentialResult ();
291
+ Future<SignInWithCrendentialResult> SignInWithCredentialLastResult ();
292
292
293
293
Usage examples:
294
294
// call and register callback
304
304
305
305
// call and poll #2 (result stored in API)
306
306
SignInWithCredential();
307
- while (GetSignInWithCredentialResult ().value() != kComplete) {
307
+ while (SignInWithCredentialLastResult ().value() != kComplete) {
308
308
}
309
309
```
310
310
You can’t perform that action at this time.
0 commit comments