Skip to content

Commit 0ba77f7

Browse files
github-actions[bot]ricochet
authored andcommitted
Update 0.3.0 WIT definitions to 0.3.0-rc-2025-08-15 (#92)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 0560ff7 commit 0ba77f7

File tree

4 files changed

+22
-22
lines changed

4 files changed

+22
-22
lines changed

wit-0.3.0-draft/monotonic-clock.wit

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package wasi:clocks@0.3.0-rc-2025-08-14;
1+
package wasi:clocks@0.3.0-rc-2025-08-15;
22
/// WASI Monotonic Clock is a clock API intended to let users measure elapsed
33
/// time.
44
///
@@ -7,39 +7,39 @@ package wasi:[email protected];
77
///
88
/// A monotonic clock is a clock which has an unspecified initial value, and
99
/// successive reads of the clock will produce non-decreasing values.
10-
@since(version = 0.3.0-rc-2025-08-14)
10+
@since(version = 0.3.0-rc-2025-08-15)
1111
interface monotonic-clock {
1212
/// An instant in time, in nanoseconds. An instant is relative to an
1313
/// unspecified initial value, and can only be compared to instances from
1414
/// the same monotonic-clock.
15-
@since(version = 0.3.0-rc-2025-08-14)
15+
@since(version = 0.3.0-rc-2025-08-15)
1616
type instant = u64;
1717

1818
/// A duration of time, in nanoseconds.
19-
@since(version = 0.3.0-rc-2025-08-14)
19+
@since(version = 0.3.0-rc-2025-08-15)
2020
type duration = u64;
2121

2222
/// Read the current value of the clock.
2323
///
2424
/// The clock is monotonic, therefore calling this function repeatedly will
2525
/// produce a sequence of non-decreasing values.
26-
@since(version = 0.3.0-rc-2025-08-14)
26+
@since(version = 0.3.0-rc-2025-08-15)
2727
now: func() -> instant;
2828

2929
/// Query the resolution of the clock. Returns the duration of time
3030
/// corresponding to a clock tick.
31-
@since(version = 0.3.0-rc-2025-08-14)
32-
resolution: func() -> duration;
31+
@since(version = 0.3.0-rc-2025-08-15)
32+
get-resolution: func() -> duration;
3333

3434
/// Wait until the specified instant has occurred.
35-
@since(version = 0.3.0-rc-2025-08-14)
36-
wait-until: func(
35+
@since(version = 0.3.0-rc-2025-08-15)
36+
wait-until: async func(
3737
when: instant,
3838
);
3939

4040
/// Wait for the specified duration has elapsed.
41-
@since(version = 0.3.0-rc-2025-08-14)
42-
wait-for: func(
41+
@since(version = 0.3.0-rc-2025-08-15)
42+
wait-for: async func(
4343
how-long: duration,
4444
);
4545
}

wit-0.3.0-draft/timezone.wit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package wasi:clocks@0.3.0-rc-2025-08-14;
1+
package wasi:clocks@0.3.0-rc-2025-08-15;
22

33
@unstable(feature = clocks-timezone)
44
interface timezone {

wit-0.3.0-draft/wall-clock.wit

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package wasi:clocks@0.3.0-rc-2025-08-14;
1+
package wasi:clocks@0.3.0-rc-2025-08-15;
22
/// WASI Wall Clock is a clock API intended to let users query the current
33
/// time. The name "wall" makes an analogy to a "clock on the wall", which
44
/// is not necessarily monotonic as it may be reset.
@@ -13,10 +13,10 @@ package wasi:[email protected];
1313
/// monotonic, making it unsuitable for measuring elapsed time.
1414
///
1515
/// It is intended for reporting the current date and time for humans.
16-
@since(version = 0.3.0-rc-2025-08-14)
16+
@since(version = 0.3.0-rc-2025-08-15)
1717
interface wall-clock {
1818
/// A time and date in seconds plus nanoseconds.
19-
@since(version = 0.3.0-rc-2025-08-14)
19+
@since(version = 0.3.0-rc-2025-08-15)
2020
record datetime {
2121
seconds: u64,
2222
nanoseconds: u32,
@@ -35,12 +35,12 @@ interface wall-clock {
3535
///
3636
/// [POSIX's Seconds Since the Epoch]: https://pubs.opengroup.org/onlinepubs/9699919799/xrat/V4_xbd_chap04.html#tag_21_04_16
3737
/// [Unix Time]: https://en.wikipedia.org/wiki/Unix_time
38-
@since(version = 0.3.0-rc-2025-08-14)
38+
@since(version = 0.3.0-rc-2025-08-15)
3939
now: func() -> datetime;
4040

4141
/// Query the resolution of the clock.
4242
///
4343
/// The nanoseconds field of the output is always less than 1000000000.
44-
@since(version = 0.3.0-rc-2025-08-14)
45-
resolution: func() -> datetime;
44+
@since(version = 0.3.0-rc-2025-08-15)
45+
get-resolution: func() -> datetime;
4646
}

wit-0.3.0-draft/world.wit

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
package wasi:clocks@0.3.0-rc-2025-08-14;
1+
package wasi:clocks@0.3.0-rc-2025-08-15;
22

3-
@since(version = 0.3.0-rc-2025-08-14)
3+
@since(version = 0.3.0-rc-2025-08-15)
44
world imports {
5-
@since(version = 0.3.0-rc-2025-08-14)
5+
@since(version = 0.3.0-rc-2025-08-15)
66
import monotonic-clock;
7-
@since(version = 0.3.0-rc-2025-08-14)
7+
@since(version = 0.3.0-rc-2025-08-15)
88
import wall-clock;
99
@unstable(feature = clocks-timezone)
1010
import timezone;

0 commit comments

Comments
 (0)