Skip to content

Instantly share code, notes, and snippets.

View ccarlile's full-sized avatar

Christopher Carlile ccarlile

View GitHub Profile
@ChristopherDavenport
ChristopherDavenport / EventAction.scala
Last active December 11, 2018 20:26
Fun Little Action Game
// fs2 1.0.0
import cats.effect._
import cats.effect.concurrent._
import cats.implicits._
import fs2._
import fs2.concurrent._
import scala.concurrent.duration._
object Main extends IOApp {

Thread Pools

Thread pools on the JVM should usually be divided into the following three categories:

  1. CPU-bound
  2. Blocking IO
  3. Non-blocking IO polling

Each of these categories has a different optimal configuration and usage pattern.