@@ -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:22:58.273198444
722
- // 13:22:59.273101407
723
- // 13:23:00.273117560
724
- // 13:23:01.273226435
721
+ // 14:54:44.116474985
722
+ // 14:54:45.116456899
723
+ // 14:54:46.116522935
724
+ // 14:54:47.116408212
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:23:03.275706873
767
- // 13:23:04.275838420
768
- // 13:23:05.275873368
769
- // 13:23:06.275793794
766
+ // 14:54:49.119163226
767
+ // 14:54:50.119141421
768
+ // 14:54:51.119194888
769
+ // 14:54:52.119217358
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@39e4417c
802
+ // T: cats.effect.kernel.Async[IO] = cats.effect.IO$$anon$5@1b78bd3b
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$11206/0x00007faf33e960a0@504042a5 ,
936
+ // thunk = cats.effect.IO$$$Lambda$11036/0x00007f0867e9f2a0@6699aa9a ,
937
937
// event = cats.effect.tracing.TracingEvent$StackTrace
938
938
// )
939
939
// ),
940
- // fs = cats.effect.std.Supervisor$$$Lambda$12103/0x00007faf340a2398@629ee50c
940
+ // fs = cats.effect.std.Supervisor$$$Lambda$11929/0x00007f08680605d0@6a64bebd
941
941
// ),
942
- // fs = cats.effect.std.Dispatcher$$$Lambda$12104/0x00007faf340a2768@6ce4ee62
942
+ // fs = cats.effect.std.Dispatcher$$$Lambda$11930/0x00007f08680609a0@2e364702
943
943
// ),
944
- // fs = cats.effect.kernel.Resource$$Lambda$12049/0x00007faf3408e188@2c1fd38b
944
+ // fs = cats.effect.kernel.Resource$$Lambda$11875/0x00007f0868043230@46404123
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$11206/0x00007faf33e960a0@7e98e9c7 ,
957
+ // thunk = cats.effect.IO$$$Lambda$11036/0x00007f0867e9f2a0@6da6ee0b ,
958
958
// event = cats.effect.tracing.TracingEvent$StackTrace
959
959
// )
960
960
// ),
961
- // fs = cats.effect.std.Supervisor$$$Lambda$12103/0x00007faf340a2398@6b3bc59d
961
+ // fs = cats.effect.std.Supervisor$$$Lambda$11929/0x00007f08680605d0@22783454
962
962
// ),
963
- // fs = cats.effect.std.Dispatcher$$$Lambda$12104/0x00007faf340a2768@2067b166
963
+ // fs = cats.effect.std.Dispatcher$$$Lambda$11930/0x00007f08680609a0@3eea794e
964
964
// ),
965
- // fs = cats.effect.kernel.Resource$$Lambda$12049/0x00007faf3408e188@7236bd6a
965
+ // fs = cats.effect.kernel.Resource$$Lambda$11875/0x00007f0868043230@7a676ee9
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$11206/0x00007faf33e960a0@7e98e9c7 ,
972
+ // thunk = cats.effect.IO$$$Lambda$11036/0x00007f0867e9f2a0@6da6ee0b ,
973
973
// event = cats.effect.tracing.TracingEvent$StackTrace
974
974
// ),
975
- // f = cats.effect.kernel.Resource$$Lambda$12106/0x00007faf340a3bc8@4652d3ce ,
975
+ // f = cats.effect.kernel.Resource$$Lambda$11932/0x00007f0868061e00@32d62fa7 ,
976
976
// event = cats.effect.tracing.TracingEvent$StackTrace
977
977
// )
978
978
```
0 commit comments