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

贡献者指南