-
Notifications
You must be signed in to change notification settings - Fork 536
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add NonEmptyHotswap #4267
base: series/3.6.x
Are you sure you want to change the base?
Add NonEmptyHotswap #4267
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR!
Honestly, I wonder if we should deprecate the old HotSwap
.
Hotswap[F, A]
is justNonEmptyHotswap[F, Option[A]]
. We don't need both.- The current
Hotswap
API is broken anyway, e.g. see MakeHotSwap
safe to concurrent access #3480 (comment).
@djspiewak I know you hate it, but there are so many things we could fix if we just embrace the ugly Hotswap2
, Queue2
, 😅
Oh, also you should retarget to series/3.6.x
if you want it to make the next release (@djspiewak are we still merging new APIs into this branch?)
std/shared/src/main/scala/cats/effect/std/NonEmptyHotswap.scala
Outdated
Show resolved
Hide resolved
std/shared/src/main/scala/cats/effect/std/NonEmptyHotswap.scala
Outdated
Show resolved
Hide resolved
Co-authored-by: Arman Bilge <[email protected]>
Co-authored-by: Arman Bilge <[email protected]>
11ca512
to
e9965a3
Compare
Also adds two methods to make `NonEmptyHotswap` a drop-in replacement for `Hotswap`
This reverts commit 8dc9fcf.
…otspot" This reverts commit bcfb4b0.
This reverts commit 4b7ebe4.
Thanks to armanbilge for the [suggestion](typelevel#4267 (comment))
Also corrects the site docs for
Hotswap
so it conforms to theHotswap
APIAddresses #4268