armanbilge/calico

Fix `getAndUpdates` hack

armanbilge opened this issue · 0 comments

extension [F[_], A](signal: Signal[F, A])
private[calico] def getAndUpdates(using Concurrent[F]): Resource[F, (A, Stream[F, A])] =
// this hack makes me sad
Resource.eval(signal.get.tupleRight(signal.discrete.drop(1)))

@2chilled reported that it is broken in #117 (comment).