@@ -718,10 +718,10 @@ val program =
718
718
// program: Stream[[x]IO[x], Unit] = Stream(..)
719
719
720
720
program.compile.drain.unsafeRunSync()
721
- // 23:34:18.587541338
722
- // 23:34:19.587470439
723
- // 23:34:20.587486508
724
- // 23:34:21.587470930
721
+ // 23:38:50.646843454
722
+ // 23:38:51.646780912
723
+ // 23:38:52.646756962
724
+ // 23:38:53.646780834
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
- // 23:34:23.589503005
767
- // 23:34:24.589506491
768
- // 23:34:25.589572818
769
- // 23:34:26.589567073
766
+ // 23:38:55.648942580
767
+ // 23:38:56.648964434
768
+ // 23:38:57.648951698
769
+ // 23:38:58.648893903
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@4461732
802
+ // T: cats.effect.kernel.Async[IO] = cats.effect.IO$$anon$5@1276504a
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$11243/0x00007f1cf3ee60a0@ec1b33d ,
936
+ // thunk = cats.effect.IO$$$Lambda$11331/0x00007ff6d3ee0ac0@356ef874 ,
937
937
// event = cats.effect.tracing.TracingEvent$StackTrace
938
938
// )
939
939
// ),
940
- // fs = cats.effect.std.Supervisor$$$Lambda$12143/0x00007f1cf40e4000@44845552
940
+ // fs = cats.effect.std.Supervisor$$$Lambda$12233/0x00007ff6d40da678@58f1fee3
941
941
// ),
942
- // fs = cats.effect.std.Dispatcher$$$Lambda$12144/0x00007f1cf40e43d0@631f9841
942
+ // fs = cats.effect.std.Dispatcher$$$Lambda$12234/0x00007ff6d40daa48@2d1029b4
943
943
// ),
944
- // fs = cats.effect.kernel.Resource$$Lambda$12089/0x00007f1cf40c8e60@459b154b
944
+ // fs = cats.effect.kernel.Resource$$Lambda$12179/0x00007ff6d40c6d90@2b6391c1
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$11243/0x00007f1cf3ee60a0@46401e9e ,
957
+ // thunk = cats.effect.IO$$$Lambda$11331/0x00007ff6d3ee0ac0@690c7181 ,
958
958
// event = cats.effect.tracing.TracingEvent$StackTrace
959
959
// )
960
960
// ),
961
- // fs = cats.effect.std.Supervisor$$$Lambda$12143/0x00007f1cf40e4000@2088edc1
961
+ // fs = cats.effect.std.Supervisor$$$Lambda$12233/0x00007ff6d40da678@3e5d9ca5
962
962
// ),
963
- // fs = cats.effect.std.Dispatcher$$$Lambda$12144/0x00007f1cf40e43d0@3f4aa401
963
+ // fs = cats.effect.std.Dispatcher$$$Lambda$12234/0x00007ff6d40daa48@122c4f53
964
964
// ),
965
- // fs = cats.effect.kernel.Resource$$Lambda$12089/0x00007f1cf40c8e60@22e6dfee
965
+ // fs = cats.effect.kernel.Resource$$Lambda$12179/0x00007ff6d40c6d90@2576394e
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$11243/0x00007f1cf3ee60a0@46401e9e ,
972
+ // thunk = cats.effect.IO$$$Lambda$11331/0x00007ff6d3ee0ac0@690c7181 ,
973
973
// event = cats.effect.tracing.TracingEvent$StackTrace
974
974
// ),
975
- // f = cats.effect.kernel.Resource$$Lambda$12146/0x00007f1cf40e5630@45f10413 ,
975
+ // f = cats.effect.kernel.Resource$$Lambda$12236/0x00007ff6d40e0000@77b1e8a3 ,
976
976
// event = cats.effect.tracing.TracingEvent$StackTrace
977
977
// )
978
978
```
0 commit comments