-
Notifications
You must be signed in to change notification settings - Fork 72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Instant and Duration subscriptions for crux_time
#226
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@StuartHarris great update to time
!
221d3ba
to
1922525
Compare
1922525
to
56f38df
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice, I just have a few naming nitpicks
Though I just skimmed that spec you linked, and have realised that's probably where you got the names. Never mind then |
Updates
crux_time
capability to be more closely aligned withwasi-clocks
.now
to return anInstant
, which represents a UTC point in time (number of seconds since the epoch and number of nanoseconds since the last second).subscribe_duration
and its async counterpart. The shell side of the capability responds when the requested duration has elapsed.subscribe_instant
and its async counterpart. The shell side of the capability responds when the requested instant has arrived.subscribe_duration