typelevel/cats-effect

Add `Lock` to std

Open

#3,535 建立於 2023年4月15日

在 GitHub 查看
 (6 留言) (2 反應) (1 負責人)Scala (572 fork)batch import
:mushroom: enhancementgood first issue

倉庫指標

Star
 (2,230 star)
PR 合併指標
 (平均合併 21天 23小時) (30 天內合併 18 個 PR)

描述

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

貢獻者指南