Skip to content

Commit

Permalink
Rename DummyImplicit to Void and make it erased
Browse files Browse the repository at this point in the history
  • Loading branch information
propensive committed Jan 26, 2025
1 parent 85beb15 commit f2f7a4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/turbulence-core.scala
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ extension (stream: Stream[Bytes])
offset += count
count

def spool[ItemType](using DummyImplicit)[ResultType](lambda: Spool[ItemType] => ResultType)
def spool[ItemType](using erased Void)[ResultType](lambda: Spool[ItemType] => ResultType)
: ResultType =
val spool: Spool[ItemType] = Spool()
try lambda(spool) finally spool.stop()

0 comments on commit f2f7a4b

Please sign in to comment.