Commit 54bdc4c
Migrate from Cats Effect 2 to Cats Effect 3
Upgrade cats-effect from 2.5.5 to 3.5.7, cats from 2.7.0 to 2.12.0,
and fs2 from 2.5.11 to 3.11.0. This is a major migration touching all
modules.
Key source changes:
- Replace Concurrent/ConcurrentEffect/Effect with Async (CE3 unification)
- Replace ContextShift/Timer with Async/Temporal
- Replace Bracket/ExitCase with MonadCancel; use monix.execution.ExitCase
- Implement Async[Task] (CatsAsyncForTask) with CE3 GenSpawn/Fiber/Outcome
- Implement Sync[Coeval] (CatsSyncForCoeval) with CE3 Clock/CancelScope
- Fix AsyncUtils.cancelable: .as(None) was evaluating cancel tokens immediately
- Fix Semaphore.make: same .as(None) cancel token bug
- Fix FutureLift.startAsync: async_ is non-cancelable in CE3, use async
- Fix CatsAsyncForTask.deferred: infinite recursion via Deferred.apply
- Fix TaskLike.fromIO: infinite recursion via Task.from
- Fix TaskApp: propagate custom Options to runAsyncOpt
- Remove CatsEffectForTask (ConcurrentEffect no longer exists)
- Remove TaskEffect (Effect no longer exists)
Test adaptations for CE3:
- Replace TestScheduler + unsafeToFuture() + .value pattern with
unsafeRunSync()/Await.result (CE3 IO runs on its own runtime)
- Replace IO(...) with Task.eval(...) in TestScheduler-based reactive
tests (IO no longer cooperates with TestScheduler in CE3)
- Use unsafeRunTimed in ConcurrentChannel/Queue JVM suites to prevent
test runner hangs from dangling async callbacks
- Ignore 2 bracket acquire cancelation race tests incompatible with
CE3 fiber scheduling model under TestScheduler
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 3a1b361 commit 54bdc4c
128 files changed
Lines changed: 1515 additions & 3422 deletions
File tree
- monix-catnap
- jvm/src
- main/scala/monix/catnap/internal
- test/scala/monix/catnap
- monix-eval
- jvm/src/test/scala/monix/eval
- project
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | 8 | | |
14 | 9 | | |
15 | 10 | | |
| |||
18 | 13 | | |
19 | 14 | | |
20 | 15 | | |
21 | | - | |
| 16 | + | |
22 | 17 | | |
23 | 18 | | |
24 | 19 | | |
25 | 20 | | |
26 | 21 | | |
27 | | - | |
28 | | - | |
29 | | - | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
30 | 25 | | |
31 | 26 | | |
32 | 27 | | |
| |||
39 | 34 | | |
40 | 35 | | |
41 | 36 | | |
42 | | - | |
| 37 | + | |
43 | 38 | | |
44 | 39 | | |
45 | 40 | | |
| |||
387 | 382 | | |
388 | 383 | | |
389 | 384 | | |
390 | | - | |
391 | | - | |
392 | | - | |
393 | | - | |
394 | | - | |
395 | | - | |
| 385 | + | |
| 386 | + | |
396 | 387 | | |
397 | 388 | | |
398 | 389 | | |
399 | 390 | | |
400 | 391 | | |
401 | | - | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
402 | 396 | | |
403 | 397 | | |
404 | 398 | | |
| |||
597 | 591 | | |
598 | 592 | | |
599 | 593 | | |
| 594 | + | |
600 | 595 | | |
601 | 596 | | |
602 | 597 | | |
| |||
749 | 744 | | |
750 | 745 | | |
751 | 746 | | |
752 | | - | |
753 | | - | |
754 | | - | |
755 | | - | |
756 | | - | |
757 | | - | |
758 | | - | |
759 | | - | |
760 | | - | |
761 | | - | |
762 | | - | |
763 | | - | |
764 | | - | |
765 | | - | |
766 | | - | |
767 | | - | |
768 | | - | |
769 | | - | |
770 | | - | |
771 | | - | |
772 | | - | |
773 | | - | |
774 | | - | |
775 | | - | |
776 | | - | |
777 | | - | |
778 | | - | |
779 | | - | |
780 | | - | |
781 | | - | |
782 | | - | |
783 | | - | |
784 | | - | |
785 | | - | |
786 | | - | |
787 | | - | |
788 | | - | |
789 | | - | |
790 | | - | |
791 | | - | |
792 | | - | |
793 | | - | |
794 | | - | |
795 | | - | |
796 | | - | |
797 | | - | |
798 | | - | |
799 | | - | |
800 | | - | |
801 | | - | |
| 747 | + | |
| 748 | + | |
Lines changed: 10 additions & 43 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | 26 | | |
39 | 27 | | |
40 | 28 | | |
| 29 | + | |
| 30 | + | |
41 | 31 | | |
42 | 32 | | |
43 | 33 | | |
44 | 34 | | |
45 | 35 | | |
| 36 | + | |
46 | 37 | | |
47 | 38 | | |
48 | 39 | | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | 40 | | |
63 | 41 | | |
64 | | - | |
65 | | - | |
| 42 | + | |
66 | 43 | | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
81 | 49 | | |
82 | | - | |
83 | 50 | | |
84 | 51 | | |
85 | 52 | | |
| |||
Lines changed: 34 additions & 52 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
21 | 20 | | |
22 | 21 | | |
| 22 | + | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
41 | 35 | | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
49 | 43 | | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
55 | 48 | | |
56 | | - | |
57 | | - | |
58 | 49 | | |
59 | 50 | | |
60 | 51 | | |
61 | 52 | | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
73 | 58 | | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
81 | 66 | | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
87 | 71 | | |
88 | | - | |
89 | | - | |
90 | 72 | | |
91 | 73 | | |
92 | 74 | | |
Lines changed: 5 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
| |||
42 | 43 | | |
43 | 44 | | |
44 | 45 | | |
45 | | - | |
46 | | - | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
47 | 50 | | |
48 | 51 | | |
49 | 52 | | |
| |||
Lines changed: 7 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
| |||
35 | 36 | | |
36 | 37 | | |
37 | 38 | | |
| 39 | + | |
| 40 | + | |
38 | 41 | | |
39 | 42 | | |
40 | 43 | | |
41 | 44 | | |
42 | 45 | | |
43 | | - | |
44 | | - | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
45 | 50 | | |
46 | 51 | | |
47 | 52 | | |
| |||
0 commit comments