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

Add IPoolableTimer and PoolableTimerFactory #496

Merged
merged 12 commits into from
Dec 4, 2024
Merged

Add IPoolableTimer and PoolableTimerFactory #496

merged 12 commits into from
Dec 4, 2024

Conversation

timcassell
Copy link
Owner

Related to #474.

System.Threading.ITimer may not be pooled by contract, so I added IPoolableTimer interface instead.
Also added PoolableTimerFactory which is the poolable timers equivalent of TimeProvider. It also includes conversion to and from TimeProvider.

Override default time provider in WebGL.
Fixed failing tests.
…TimeProvider` and `ITimer`.

TODO: convert Unity time providers to `PoolableTimerFactory`.
@timcassell timcassell added the enhancement New feature or request label Dec 2, 2024
@timcassell timcassell added this to the v3.3.0 milestone Dec 2, 2024
@timcassell timcassell self-assigned this Dec 2, 2024
TODO: Add exception handling.
Moved `IPoolableTimer` interface to `Proto.Promises.Threading` namespace.
Added exception handling to timer invocations.
@timcassell timcassell marked this pull request as ready for review December 3, 2024 05:35
@timcassell timcassell merged commit e1019e7 into develop Dec 4, 2024
27 checks passed
@timcassell timcassell deleted the time branch December 4, 2024 01:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant