mirror of https://github.com/mongodb/mongo
SERVER-114774: Update futures_and_promises.md (#44746)
GitOrigin-RevId: 8ab02d432a5db5ed6b84461d42978109532e8e58
This commit is contained in:
parent
1485ff664a
commit
a11d83264b
|
|
@ -351,6 +351,7 @@ WORKSPACE.bazel @10gen/devprod-build @svc-auto-approve-bot
|
|||
/docs/**/devcontainer-setup.md @10gen/devprod-correctness @svc-auto-approve-bot
|
||||
/docs/devcontainer/** @10gen/devprod-correctness @svc-auto-approve-bot
|
||||
/docs/**/exception_architecture.md @10gen/server-programmability @svc-auto-approve-bot
|
||||
/docs/**/futures_and_promises.md @10gen/server-programmability @svc-auto-approve-bot
|
||||
/docs/**/golden_data_test_framework.md @10gen/query-optimization @svc-auto-approve-bot
|
||||
/docs/**/idl.md @10gen/server-programmability @svc-auto-approve-bot
|
||||
/docs/**/linting.md @10gen/devprod-build @svc-auto-approve-bot
|
||||
|
|
|
|||
|
|
@ -18,6 +18,9 @@ filters:
|
|||
- "exception_architecture.md":
|
||||
approvers:
|
||||
- 10gen/server-programmability
|
||||
- "futures_and_promises.md":
|
||||
approvers:
|
||||
- 10gen/server-programmability
|
||||
- "golden_data_test_framework.md":
|
||||
approvers:
|
||||
- 10gen/query-optimization
|
||||
|
|
|
|||
|
|
@ -174,7 +174,7 @@ SemiFuture<Work> SomeAsyncService::requestWork() {
|
|||
|
||||
// Code consuming a `SemiFuture`
|
||||
SemiFuture<Work> sf = SomeAsyncService::requestWork();
|
||||
// sf.then(...) wont' compile because sf is a SemiFuture, which doesn't allow chaining continuations
|
||||
// sf.then(...) won't compile because sf is a SemiFuture, which doesn't allow chaining continuations
|
||||
// sf.onError(...) won't compile for the same reason
|
||||
auto res = sf.get(); // OK; get blocks until sf is ready
|
||||
```
|
||||
|
|
|
|||
Loading…
Reference in New Issue