Laurent Thiebaud
09/12/2024, 10:21 AMRaise context may escape through this lambdaFor example with such code:
either {
parMap(Dispatchers.Default) { it().bind() }
}
which is exactly the code of parSequenceEither
that has been deprecated
what am I doing wrong?
(I have arrow 1.2.4)
ThxAlejandro Serrano.Mena
09/12/2024, 10:49 AMAlejandro Serrano.Mena
09/12/2024, 10:49 AMLaurent Thiebaud
09/12/2024, 11:00 AMLaurent Thiebaud
09/17/2024, 3:26 PMAlejandro Serrano.Mena
09/18/2024, 7:33 AMAlejandro Serrano.Mena
09/18/2024, 7:34 AMLaurent Thiebaud
09/18/2024, 9:57 AMAlejandro Serrano.Mena
09/18/2024, 10:15 AM.bind()
is working on a context without Raise
. because the plugin doesn't correctly recognize that parMap
would be inlinedAlejandro Serrano.Mena
09/18/2024, 10:15 AMAlejandro Serrano.Mena
09/18/2024, 10:16 AMthing.bindAll()
instead of map(thing) { it.bind() }
Alejandro Serrano.Mena
09/20/2024, 2:06 PMparMap
in this fashion?Laurent Thiebaud
09/26/2024, 8:18 AMAlejandro Serrano.Mena
09/26/2024, 8:21 AMLaurent Thiebaud
09/26/2024, 8:22 AMAlejandro Serrano.Mena
09/26/2024, 8:25 AMsimon.vergauwen
10/01/2024, 10:53 AMsimon.vergauwen
10/01/2024, 10:53 AMLaurent Thiebaud
10/01/2024, 12:27 PMAlejandro Serrano.Mena
10/01/2024, 2:22 PMasync
, launch
, parZip
, and `parMap`; does it sound ok to you, @simon.vergauwen?Alejandro Serrano.Mena
10/01/2024, 4:10 PMparMap
and similar are only OK if they are run directly, but they may escape through an async
or something like that...simon.vergauwen
10/02/2024, 9:57 AMasync
unless the awaitAll { }
scope is usedsimon.vergauwen
10/02/2024, 9:59 AMHi when you "It's perfect usage." does it means that I can ignore it?@Laurent Thiebaud Yes, you can ignore the warning from the Arrow plugin. I can file an issue for this to be solved ☺️
Laurent Thiebaud
10/02/2024, 12:03 PMAlejandro Serrano.Mena
10/02/2024, 4:29 PM