Skip to content

Commit

Permalink
Remove time examples.
Browse files Browse the repository at this point in the history
  • Loading branch information
zainab-ali committed Sep 8, 2024
1 parent cff72da commit c69cc6d
Showing 1 changed file with 0 additions and 48 deletions.
48 changes: 0 additions & 48 deletions examples/src/main/scala/Examples.scala
Original file line number Diff line number Diff line change
Expand Up @@ -302,54 +302,6 @@ object EffectsParEvalMapUnordered extends Example {
)
}

@JSExportTopLevel("TimeAwakeEvery")
object TimeAwakeEvery extends Example {
def apply(using Scape[IO]): StreamCode =
code(
Stream
.awakeEvery[IO](5.seconds)
.map(_.toSeconds)
.stage("Stream.awakeEvery(5.seconds).map(…)")
.take(2)
.stage("take(2)")
.compile
.toList
.compileStage("compile.toList")
)
}

@JSExportTopLevel("TimeDelayBy")
object TimeDelayBy extends Example {
def apply(using Scape[IO]): StreamCode =
code(
Stream('a', 'b', 'c')
.chunkLimit(1)
.unchunks
.stage("Stream('a','b','c')…unchunks")
.delayBy(5.seconds)
.stage("delayBy(5.seconds)")
.compile
.toList
.compileStage("compile.toList")
)
}

@JSExportTopLevel("TimeMetered")
object TimeMetered extends Example {
def apply(using Scape[IO]): StreamCode =
code(
Stream('a', 'b', 'c')
.chunkLimit(1)
.unchunks
.stage("Stream('a','b','c')…unchunks")
.metered(5.seconds)
.stage("metered(5.seconds)")
.compile
.toList
.compileStage("compile.toList")
)
}

@JSExportTopLevel("TimeDebounce")
object TimeDebounce extends Example {
def apply(using Scape[IO]): StreamCode =
Expand Down

0 comments on commit c69cc6d

Please sign in to comment.