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

Refactor Timers #500

Merged
merged 2 commits into from
Dec 14, 2024
Merged

Refactor Timers #500

merged 2 commits into from
Dec 14, 2024

Conversation

timcassell
Copy link
Owner

Related to #474.

Wrap ITimerSource timers in a Timer struct.
Moved timers and factories to Proto.Timers namespace.

I was unhappy with exposing IPoolableTimer directly, as it lacks any improper use detection. Wrapping it in a struct and passing along a token helps with that, just like all the other types in the library (the difference here is the interface is public, so users can provide their own implementations, similar to ValueTask).

…ection.

Moved timers and factories to `Proto.Timers` namespace.
@timcassell timcassell force-pushed the timers branch 3 times, most recently from 23ec65a to 3e3c95e Compare December 14, 2024 21:32
@timcassell timcassell merged commit 3aae87e into develop Dec 14, 2024
27 checks passed
@timcassell timcassell deleted the timers branch December 14, 2024 23:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant