Skip to content

Commit

Permalink
drop comment about single-threaded Native
Browse files Browse the repository at this point in the history
  • Loading branch information
rssh committed May 19, 2024
1 parent 9c1f9eb commit 5f51e47
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions native/src/main/scala/cps/stream/AsyncListIterator.scala
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@ class AsyncListIterator[F[_]:CpsConcurrentMonad, T](l: AsyncList[F,T])(using Exe
case class StateInit(l:AsyncList[F,T]) extends State
case class StateNext(cachedNext: Promise[Option[(T,AsyncList[F,T])]]) extends State

// scala-native is one-threaded for now
// but we use thread-safe version to simplicy future changing of
// scala-native mode.
val refState: AtomicReference[State] = new AtomicReference(StateInit(l))


Expand Down Expand Up @@ -62,4 +59,4 @@ class AsyncListIterator[F[_]:CpsConcurrentMonad, T](l: AsyncList[F,T])(using Exe
}


end AsyncListIterator
end AsyncListIterator

0 comments on commit 5f51e47

Please sign in to comment.