Skip to content

Commit ef53d45

Browse files
committed
docs: explain property promise await
1 parent e729788 commit ef53d45

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

packages/docs/src/content/docs/concepts/promises.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@ class Counter extends RpcTarget {
134134

135135
using first = counter.increment();
136136
using second = counter.increment(10);
137+
// Property access queues the getter and returns an RpcPromise<number>.
137138
let value = counter.value;
138139

139140
resolve(new Counter(0));

0 commit comments

Comments
 (0)