We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cdccee8 commit 3850f9dCopy full SHA for 3850f9d
wit-0.3.0-draft/monotonic-clock.wit
@@ -31,17 +31,15 @@ interface monotonic-clock {
31
@since(version = 0.3.0)
32
resolution: func() -> duration;
33
34
- /// Create a `future` which will resolve once the specified instant
35
- /// has occurred.
+ /// Wait until the specified instant has occurred.
36
37
- subscribe-instant: func(
+ wait-until: func(
38
when: instant,
39
- ) -> future;
+ );
40
41
- /// Create a `future` that will resolve after the specified duration has
42
- /// elapsed from the time this function is invoked.
+ /// Wait for the specified duration has elapsed.
43
44
- subscribe-duration: func(
45
- when: duration,
46
+ wait-for: func(
+ how-long: duration,
47
}
0 commit comments