r/purescript • u/VigVigorish • Oct 04 '20
Getting the value from Aff to Effect
Why there isn't a function so that i can run the Aff in Effect and get its value ? All i can find is launchAff but that returns Fiber a and if i run the Fiber it returns Unit in Effect , i would assume it returns the value but no.
7
Upvotes
View all comments
Show parent comment
2
u/VigVigorish Oct 06 '20
But let say i want to make a http request , only way i could do that is in Aff but i want to wait in Effect until the request is done , i think the function that permits to run Aff in Effect is liftAff .