arrow-fx-coroutines / arrow.fx.coroutines.stream / Stream / never

never

fun <A> never(): Stream<A>

Creates a Stream that never returns any values

import arrow.fx.coroutines.*
import arrow.fx.coroutines.stream.*

//sampleStart
suspend fun main(): Unit =
  timeOutOrNull(1.seconds) {
    Stream.never<Int>().drain()
  }.let(::println)
//sampleEnd

Do you like Arrow?

Arrow Org
<