SERVER-114774: Update futures_and_promises.md (#44746)

GitOrigin-RevId: 8ab02d432a5db5ed6b84461d42978109532e8e58
This commit is contained in:
Cedric Sirianni 2025-12-08 10:49:30 -05:00 committed by MongoDB Bot
parent 1485ff664a
commit a11d83264b
3 changed files with 5 additions and 1 deletions

1
.github/CODEOWNERS vendored
View File

@ -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

View File

@ -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

View File

@ -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
```