arrow-fx / arrow.fx / IO / suspended

suspended

suspend fun suspended(): A

Run the IO in a suspended environment.

import arrow.fx.IO

//sampleStart
suspend fun main(args: Array<String>): Unit =
  IO.effect { println("Hello World!") }
  .suspended()
//sampleEnd

Do you like Arrow?

Arrow Org
<