typelevel/cats-effect

Add `Lock` to std

Open

#3535 aperta il 15 apr 2023

Vedi su GitHub
 (6 commenti) (2 reazioni) (1 assegnatario)Scala (572 fork)batch import
:mushroom: enhancementgood first issue

Metriche repository

Star
 (2230 star)
Metriche merge PR
 (Merge medio 21g 23h) (18 PR mergiate in 30 g)

Descrizione

Spinning out of https://github.com/typelevel/cats-effect/pull/3480#discussion_r1125597170.

The API would look something like:

abstract class Lock[F[_]] {
  def shared: Resource[F, Unit]
  def exclusive: Resource[F, Unit]
}

Guida contributor