Skip to content

Commit

Permalink
And publish rewrite
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristopherDavenport committed Nov 16, 2021
1 parent fe495a2 commit 35cdaf1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions site/docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ action1.unsafeRunSync()
// Not Affected By Other Keys
val action2 = {
for {
sem <- KeySemaphore.of[IO, Int]{_: Int => 1L}
sem <- KeySemaphore.of[IO, Int]{(_: Int) => 1L}
first <- sem(1).tryAcquire
second <- sem(2).tryAcquire
third <- sem(1).tryAcquire
Expand All @@ -58,7 +58,7 @@ action2.unsafeRunSync()
// leaked per key
val action3 = {
for {
sem <- KeySemaphore.of[IO, Int]{_: Int => 1L}
sem <- KeySemaphore.of[IO, Int]{(_: Int) => 1L}
first <- sem(1).tryAcquire
second <- sem(1).tryAcquire
_ <- sem(1).release
Expand Down

0 comments on commit 35cdaf1

Please sign in to comment.