typelevel/cats-effect

Add `Lock` to std

Open

#3,535 创建于 2023年4月15日

在 GitHub 查看
 (6 评论) (2 反应) (1 负责人)Scala (2,230 star) (572 fork)batch import
:mushroom: enhancementgood first issue

描述

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

贡献者指南