Skip to content

Commit df805b2

Browse files
committed
More on futures.
1 parent a5b772d commit df805b2

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

AGENTS.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,11 @@ where `T` is the type of the expected result.
252252
methods. If you add a new asynchronous operation, it should be added to
253253
that enum, and that ID should be used for all of the internal FutureApi
254254
operations. Non-async functions never need to touch this.
255-
255+
* Asynchronous functions ONLY: Only asynchronous functions need to use
256+
the Future pattern, e.g. anything with a callback. If you are simply
257+
calling an underlying SDK function that finishes its work and returns
258+
immediately, with no callback, there is no need to use a Future. See
259+
`STYLE_GUIDE.md` for more details on asynchronous operations.
256260

257261
### Core Classes and Operations (Examples from Auth and Database)
258262

0 commit comments

Comments
 (0)