@@ -718,10 +718,10 @@ val program =
718
718
// program: Stream[[x]IO[x], Unit] = Stream(..)
719
719
720
720
program.compile.drain.unsafeRunSync()
721
- // 13:29:00.080601479
722
- // 13:29:01.080534675
723
- // 13:29:02.080605881
724
- // 13:29:03.080531435
721
+ // 13:43:10.243170505
722
+ // 13:43:11.243173808
723
+ // 13:43:12.243208496
724
+ // 13:43:13.243190252
725
725
```
726
726
727
727
Let ' s take this line by line now, so we can understand what' s going on.
@@ -763,10 +763,10 @@ val program1 =
763
763
// program1: Stream[[x]IO[x], Unit] = Stream(..)
764
764
765
765
program1.compile.drain.unsafeRunSync()
766
- // 13:29:05.082964565
767
- // 13:29:06.082889528
768
- // 13:29:07.083002508
769
- // 13:29:08.082870103
766
+ // 13:43:15.245800863
767
+ // 13:43:16.245777276
768
+ // 13:43:17.245785493
769
+ // 13:43:18.245861371
770
770
```
771
771
772
772
### Talking to the external world
@@ -799,7 +799,7 @@ The way you bring synchronous effects into your effect type may differ. `Sync.de
799
799
import cats .effect .Sync
800
800
801
801
val T = Sync [IO ]
802
- // T: cats.effect.kernel.Async[IO] = cats.effect.IO$$anon$5@32d18a69
802
+ // T: cats.effect.kernel.Async[IO] = cats.effect.IO$$anon$5@6f8180ae
803
803
val s2 = Stream .exec(T .delay { destroyUniverse() }) ++ Stream (" ...moving on" )
804
804
// s2: Stream[[x]IO[x], String] = Stream(..)
805
805
s2.compile.toVector.unsafeRunSync()
@@ -933,15 +933,15 @@ stream.toUnicastPublisher
933
933
// source = Bind(
934
934
// source = Eval(
935
935
// fa = Delay(
936
- // thunk = cats.effect.IO$$$Lambda$11292/0x00007f30e3ece0a0@7ef108d8 ,
936
+ // thunk = cats.effect.IO$$$Lambda$12038/0x00007f26dc036ca0@50ae6fd7 ,
937
937
// event = cats.effect.tracing.TracingEvent$StackTrace
938
938
// )
939
939
// ),
940
- // fs = cats.effect.std.Supervisor$$$Lambda$12189/0x00007f30e40cc000@13e9a405
940
+ // fs = cats.effect.std.Supervisor$$$Lambda$12934/0x00007f26dc237308@aba2604
941
941
// ),
942
- // fs = cats.effect.std.Dispatcher$$$Lambda$12190/0x00007f30e40cc3d0@144fea92
942
+ // fs = cats.effect.std.Dispatcher$$$Lambda$12935/0x00007f26dc2376d8@541d9690
943
943
// ),
944
- // fs = cats.effect.kernel.Resource$$Lambda$12135/0x00007f30e40b0e60@74582ffb
944
+ // fs = cats.effect.kernel.Resource$$Lambda$12880/0x00007f26dc21af70@4bc4b516
945
945
// )
946
946
```
947
947
@@ -954,25 +954,25 @@ val publisher: Resource[IO, StreamUnicastPublisher[IO, Int]] = Stream(1, 2, 3).c
954
954
// source = Bind(
955
955
// source = Eval(
956
956
// fa = Delay(
957
- // thunk = cats.effect.IO$$$Lambda$11292/0x00007f30e3ece0a0@2195e60 ,
957
+ // thunk = cats.effect.IO$$$Lambda$12038/0x00007f26dc036ca0@68b7ab6e ,
958
958
// event = cats.effect.tracing.TracingEvent$StackTrace
959
959
// )
960
960
// ),
961
- // fs = cats.effect.std.Supervisor$$$Lambda$12189/0x00007f30e40cc000@5c8e0baa
961
+ // fs = cats.effect.std.Supervisor$$$Lambda$12934/0x00007f26dc237308@33e62a7a
962
962
// ),
963
- // fs = cats.effect.std.Dispatcher$$$Lambda$12190/0x00007f30e40cc3d0@37fe71d3
963
+ // fs = cats.effect.std.Dispatcher$$$Lambda$12935/0x00007f26dc2376d8@bf78380
964
964
// ),
965
- // fs = cats.effect.kernel.Resource$$Lambda$12135/0x00007f30e40b0e60@26cb720
965
+ // fs = cats.effect.kernel.Resource$$Lambda$12880/0x00007f26dc21af70@6575ebed
966
966
// )
967
967
publisher.use { p =>
968
968
p.toStream[IO ].compile.toList
969
969
}
970
970
// res59: IO[List[Int]] = FlatMap(
971
971
// ioe = Delay(
972
- // thunk = cats.effect.IO$$$Lambda$11292/0x00007f30e3ece0a0@2195e60 ,
972
+ // thunk = cats.effect.IO$$$Lambda$12038/0x00007f26dc036ca0@68b7ab6e ,
973
973
// event = cats.effect.tracing.TracingEvent$StackTrace
974
974
// ),
975
- // f = cats.effect.kernel.Resource$$Lambda$12192/0x00007f30e40cd630@573fa87f ,
975
+ // f = cats.effect.kernel.Resource$$Lambda$12937/0x00007f26dc230800@7291139a ,
976
976
// event = cats.effect.tracing.TracingEvent$StackTrace
977
977
// )
978
978
```
0 commit comments