File tree Expand file tree Collapse file tree 1 file changed +7
-9
lines changed Expand file tree Collapse file tree 1 file changed +7
-9
lines changed Original file line number Diff line number Diff line change @@ -31,17 +31,15 @@ interface monotonic-clock {
31
31
@since (version = 0.3.0 )
32
32
resolution : func () -> duration ;
33
33
34
- /// Create a `future` which will resolve once the specified instant
35
- /// has occurred.
34
+ /// Wait until the specified instant has occurred.
36
35
@since (version = 0.3.0 )
37
- subscribe-instant : func (
36
+ wait-until : func (
38
37
when : instant ,
39
- ) -> future ;
38
+ );
40
39
41
- /// Create a `future` that will resolve after the specified duration has
42
- /// elapsed from the time this function is invoked.
40
+ /// Wait for the specified duration has elapsed.
43
41
@since (version = 0.3.0 )
44
- subscribe-duration : func (
45
- when : duration ,
46
- ) -> future ;
42
+ wait-for : func (
43
+ how-long : duration ,
44
+ );
47
45
}
You can’t perform that action at this time.
0 commit comments