typelevel/cats-effect

Add `Lock` to std

オープン

#3,535 opened on 2023/04/15

 (6 件のコメント) (2 件のリアクション) (1 人の担当者)Scala (572 件のフォーク)batch import
:mushroom: enhancementgood first issue

Repository metrics

Stars
 (2,230 個のスター)
PR merge metrics
 (平均マージ 21d 23h) (30d で 18 merged PRs)

説明

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]
}

コントリビューターガイド