Skip to content

Instantly share code, notes, and snippets.

@qingwei91
Last active December 29, 2022 11:38
Show Gist options
  • Save qingwei91/84436ebbc932b3be2824a1f6e070b291 to your computer and use it in GitHub Desktop.
Save qingwei91/84436ebbc932b3be2824a1f6e070b291 to your computer and use it in GitHub Desktop.
Sample IO
import cats.effects._
val knockNeighborsDoor = IO(raiseHandAndKnock)
knockNeighborsDoor.unsafeRunSync == noResponse
knockNeighborsDoor.unsafeRunSync == neighborOpenDoor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment