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.

In case of Android, we can cancel a job and its children in onDestroy. Is there a way to pause it (e.g. in onStop) and resume it (e.g. in onStart)? Or any plan to implement it?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:5
  • Comments:15 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
elizarovcommented, May 14, 2018

I’m closing this issue in favor of #258. Having thought about the issue I don’t think that solving “pausing” problem on a dispatcher level is a right way to do it. It is better to explicitly write code that suspends coroutine until the desired state is reached.

2reactions
fikr4ncommented, Aug 21, 2017

However, if you doing some UI animations with coroutines or something like that, then pausing them indeed makes sense.

Yes, it’s what I meant, there’s no problem with the HTTP response, but I want to delay displaying/toasting/animating something based on that response until the fragment/activity started (in case it is stopped).

Read more comments on GitHub >

github_iconTop Results From Across the Web

PAUSE JOB | CockroachDB Docs
The PAUSE JOB statement lets you pause the following types of jobs: ... After pausing jobs, you can resume them with RESUME JOB...
Read more >
Pause a job posting - SimplyHired
If your role permits, follow these steps to pause a job posting. When you pause a job, you temporarily stop accepting applications for...
Read more >
A New Way to Explain the Pause in Your Career
There's an irony here: by taking steps to camouflage their career breaks on resumes, job seekers are inadvertently setting themselves up for ...
Read more >
job pause - Product documentation - NetApp
The job pause command pauses a job. Use the job resume command to resume a paused job. Use the job show command to...
Read more >
5 Signs You Need to Take a Pause in Your Career
Sometimes, the best way to move forward at work is to slow down first.
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