Skip to content
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

crux_time API improvement #284

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

adwhit
Copy link
Contributor

@adwhit adwhit commented Oct 30, 2024

This is a suggestion to remove the id: TimerId argument from various crux_time APIs. In my opinion it doesn't make sense to provide this value, it should be considered an opaque type useful only inside crux_time (so perhaps consider removing the ability to independently create TimerIds too). YMMV!

Obviously this is a breaking change.

Copy link
Member

@charypar charypar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think I agree with this - allowing the ID to be set was an oversight 🙈

@StuartHarris any opinions?

@StuartHarris
Copy link
Member

Yes I agree. Thanks @adwhit !

@adwhit
Copy link
Contributor Author

adwhit commented Oct 31, 2024

While we're breaking things, refactoring TimeResponse::Now(Instant) to TimeResponse::Now { instant: Instant } would make the bindings nicer

@charypar
Copy link
Member

charypar commented Nov 4, 2024

While we're breaking things, refactoring TimeResponse::Now(Instant) to TimeResponse::Now { instant: Instant } would make the bindings nicer

wanna do that before we merge it?

@adwhit
Copy link
Contributor Author

adwhit commented Nov 4, 2024

Yep done

Copy link
Member

@charypar charypar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Happy with this, thank you!

/cc @StuartHarris this will be a breaking change to the time capability once more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants