Commit graph

21 commits

Author SHA1 Message Date
Ell dc5206fced allow invoking later with an event directly 2023-02-23 19:08:26 +01:00
Ell 201369f167 code cleanup 2023-02-23 19:04:16 +01:00
Ell 1deb8a9d89 ensure coroutine handler instance thread safety 2021-11-29 11:37:17 +01:00
Ell 07623ddc1a Fixed an issue with removing event-based coroutines after several event calls
Fixes #14
2021-04-08 19:31:11 +02:00
Ell 0e5b571590 cleanup 2021-03-21 02:02:11 +01:00
Ell 0de8a0dd2d split outstanding coroutines into two lists to improve performance slightly 2021-03-21 01:58:16 +01:00
Ell 10590841d2 only move coroutines that relate to the required type 2021-03-20 21:24:18 +01:00
Ell 19e8a74d2b use default initial capacity when creating event coroutine collection 2021-03-20 21:21:05 +01:00
Ell 42360014d8 use sets for eventCoroutinesToRemove to speed up Contains check 2021-03-20 15:24:25 +01:00
Ell 501d744326 increase performance and scalability by storing event coroutines linked to their event 2021-03-20 15:13:39 +01:00
Ell ff8749a799 Ensure that event coroutines never get duplicated when duplicate events are raised 2021-03-20 03:23:04 +01:00
Ell cf1b3c2db0 added a convenience method that accepts a TimeSpan for Tick 2021-03-20 02:00:46 +01:00
Ell 9f4d43d730 clean up recent pull request a bit 2021-03-20 01:50:00 +01:00
Zaafar 469527cd87 name changes 2021-03-19 19:55:32 -04:00
Zaafar 3998cd92d7 added another test-case
also, provided a fix.
2021-03-19 18:37:17 -04:00
Ell 6e07a26a6c fixed some race conditions with nested coroutines 2021-03-17 01:13:57 +01:00
Ell ffdb5ed8f7 revert back to using for loops to allow for nested coroutines to work correctly
Closes #6
2021-03-17 00:38:44 +01:00
Ell c68121614f added coroutine priority
Closes #6
2021-03-16 19:07:28 +01:00
Ell d3b34154ad Added some statistics to coroutines
It took me half a year, but closes #4
2020-12-20 17:12:43 +01:00
Ellpeck ca2350592e documentation 2020-06-13 03:12:26 +02:00
Ellpeck f199112d99 allow coroutine handler instancing. Actually solves #2 2020-06-13 03:02:11 +02:00