Skip to content

Commit 3850f9d

Browse files
committed
feat: change API to be regular async func
1 parent cdccee8 commit 3850f9d

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

wit-0.3.0-draft/monotonic-clock.wit

+7-9
Original file line numberDiff line numberDiff line change
@@ -31,17 +31,15 @@ interface monotonic-clock {
3131
@since(version = 0.3.0)
3232
resolution: func() -> duration;
3333

34-
/// Create a `future` which will resolve once the specified instant
35-
/// has occurred.
34+
/// Wait until the specified instant has occurred.
3635
@since(version = 0.3.0)
37-
subscribe-instant: func(
36+
wait-until: func(
3837
when: instant,
39-
) -> future;
38+
);
4039

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.
4341
@since(version = 0.3.0)
44-
subscribe-duration: func(
45-
when: duration,
46-
) -> future;
42+
wait-for: func(
43+
how-long: duration,
44+
);
4745
}

0 commit comments

Comments
 (0)