arrow-fx / arrow.fx / IO / unsafeRunSync


fun unsafeRunSync(): A

unsafeRunSync allows you to run any IO to its wrapped value A.

It’s called unsafe because it immediately runs the effects wrapped in IO, and thus is not referentially transparent.

NOTE this function is intended for testing, it should never appear in your mainline production code!

Return the resulting value

See Also



Do you like Arrow?

Arrow Org