Skip to content
Discussion options

You must be logged in to vote

@kamcma We definitely don't think it's a code smell to use Task.never() in this kind of way 😄 In fact we've used it in similar ways to great effect, some of which may make it into future TCA features.

It's a great way to suspend for as long as you need to, and terminate when some outside event occurs (via cancellation).

In this particular example I'd probably need to think more about alternatives, but it seems clever to me on first look!

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@kamcma
Comment options

Answer selected by kamcma
Comment options

You must be logged in to vote
1 reply
@kamcma
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants