Commit graph

58 commits

Author SHA1 Message Date
Ell 7501ffaf9c 2.1.5 2023-02-23 19:11:38 +01:00
Ell aa8a2b8ff9 made Coroutine trimmable 2023-02-23 19:11:10 +01:00
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 8f3f960e57 2.1.4 2022-09-14 19:42:33 +02:00
Ell ffed3bcd45 multi-target coroutine 2022-09-14 19:41:40 +02:00
Ell 4f09e64039 update 2021-11-29 11:43:48 +01:00
Ell 8a3e55b8f4 Merge remote-tracking branch 'origin/main' into main 2021-11-29 11:37:39 +01:00
Ell 1deb8a9d89 ensure coroutine handler instance thread safety 2021-11-29 11:37:17 +01:00
Ell 9e57c0250a 2.1.2 2021-11-07 15:36:51 +01:00
Ell a73c3f7843 Merge remote-tracking branch 'origin/main'
# Conflicts:
#	Coroutine/Coroutine.csproj
2021-11-07 15:32:43 +01:00
Ell 02d16ee81d added a logo and added readme to package 2021-11-07 15:29:40 +01:00
Ell f71426321f reflect branch rename 2021-10-24 00:44:30 +02:00
Ell fdc2ada90a update 2021-05-29 17:57:27 +02: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 5dc11e0d26 update 2021-03-21 18:07:30 +01:00
Zaafar 889ed157fe Removed Avg, Max and added raw stats i.e LastMoveNextTime 2021-03-21 12:54:21 -04: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 c26d0cbeb0 cleaned up tests and integrated them with ci 2021-03-18 16:38:34 +01:00
Ell 47dbd8bf25 update 2021-03-17 01:17:16 +01: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 448a55081b minor cleanup 2021-03-16 19:10:25 +01:00
Ell c68121614f added coroutine priority
Closes #6
2021-03-16 19:07:28 +01:00
Ell 5c6621ace3 use Equals for event comparison to allow easily overriding the equals method 2021-03-16 18:28:38 +01:00
Zaafar 013b846fbc added MaxMoveNextTime Stat to ActiveCoroutine. 2021-01-01 00:27:34 -05:00
Ell 2453232fd2 update 2020-12-20 17:14:24 +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 ec08d6e314 update 2020-06-13 03:13:10 +02: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
Ellpeck b4874dd365 overhaul the coroutine system to avoid boxing 2020-06-13 02:58:54 +02:00
Ellpeck ae6e4924ec update 2020-05-19 16:14:06 +02:00
Ellpeck a3af44becb Fixed empty coroutines throwing a NRE
Closes #3
2020-05-19 16:06:38 +02:00
Ellpeck fa4d021368 fixed cancellation causing the wrong coroutines to be stopped 2020-03-26 02:30:29 +01:00
Ellpeck 53e10da875 test 2020-03-26 02:17:34 +01:00
Ellpeck 99aab497e5 Revert "synchronize coroutines to allow interaction from different threads"
This reverts commit 708941ff
2020-03-26 01:48:02 +01:00
Ellpeck 708941ff01 synchronize coroutines to allow interaction from different threads 2020-03-26 01:35:37 +01:00
Ellpeck b850b3bae0 allow getting a list of all active coroutines 2020-03-24 23:47:27 +01:00
Ellpeck bf792e3e73 allow stopping coroutines 2020-03-22 22:28:19 +01:00