question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Longrunning tasks

See original GitHub issue

I still have problems in understanding how long running tasks can be handled with this library.

Assume I have an media player which has an Observable that emits the current playback position. My approach here is to subscribe to that observable when the view gets attached and unsubscribe when the view gets detatched.

However, FragmentMvpDelegateImpl shows that the view is attached between onViewCreated and onViewDestroyed. But that also means that the view gets constantly updated when the screen is off which is obviously bad.

Is there a way to handle these kind of scenarios using mosby?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
farmazon3000commented, May 9, 2016

Isn’t this breaking separation of layers a little bit, i.e. View bypasses the Presenter talks with Model.

0reactions
farmazon3000commented, May 9, 2016

Yes this is where I came from. And this is why I asked the question.

Read more comments on GitHub >

github_iconTop Results From Across the Web

What does "long-running tasks" mean? - Stack Overflow
The means that if you run a large number of threads where they each take a minute to start but only run for...
Read more >
Long-Running Tasks in a Monolith ASP.NET Core Application
In this article, we're going to explore the different ways we can implement such a long-running task in an ASP.NET Core Web API....
Read more >
Create A Long Running Task In C#.NET Core
In today's article we will look at creating such a long running task. We will pass to it the function that needs to...
Read more >
Design Patterns for Handling Long-running Tasks
Design Patterns for Handling Long-running Tasks · Introduction · Problem · Outbox Pattern · Asynchronous Request-Reply Pattern · Conclusion.
Read more >
Async processing of long-running tasks in ASP.NET Core
Sometimes, invoking an API endpoint needs to trigger a long-running task. Examples of this could be invoking an external and slow API or ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found