Skip to content

Commit

Permalink
Fix scaladoc
Browse files Browse the repository at this point in the history
  • Loading branch information
vigoo committed Mar 28, 2022
1 parent 5e028e9 commit 2d303cc
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ final class TSemaphore[F[+_]] private (underlying: ZTSemaphore) {
withPermits(1L)(effect)

/**
* See [[zio.stm.TSemaphore#withPermitManaged]]
* See [[zio.stm.TSemaphore#withPermitScoped]]
*/
def withPermitResource(implicit R: Runtime[Any], F: Async[F], trace: ZTraceElement): Resource[F, Unit] =
withPermitsResource(1L)
Expand All @@ -86,7 +86,7 @@ final class TSemaphore[F[+_]] private (underlying: ZTSemaphore) {
underlying.withPermits(n)(fromEffect(effect)).toEffect[F]

/**
* See [[zio.stm.TSemaphore#withPermitsManaged]]
* See [[zio.stm.TSemaphore#withPermitsScoped]]
*/
def withPermitsResource(n: Long)(implicit R: Runtime[Any], F: Async[F], trace: ZTraceElement): Resource[F, Unit] =
Resource.scoped(underlying.withPermitsScoped(n))
Expand Down

0 comments on commit 2d303cc

Please sign in to comment.