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.

How to work with timers and long asynchronous operations?

See original GitHub issue

Hello, I’d like to ask what is the recommended way to fake timers and move in time in long asynchronous operations. We use fakeAsync in combination with tick and flush.

Working with the testing library feels good but I can’t find a word or example about that topic. Do I understand correctly that angular-testing-library is a companion to angular testing utils?

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
StarpTechcommented, Dec 4, 2020

Good example 👍

0reactions
github-actions[bot]commented, Dec 9, 2020

🎉 This issue has been resolved in version 10.3.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Read more comments on GitHub >

github_iconTop Results From Across the Web

Using Processes and Timers for Long-Running Asynchronous ...
What do you do when a task can take more than five minutes and then times out? How do you run it asynchronously...
Read more >
Asynchronous Processing with Timers Course - Training
With this introductory course, you will be able to how to create timers to execute long-running tasks in asynchronously and in the background, ......
Read more >
Using Processes and Timers for Long-Running ... - SlideShare
Understanding how Processes and Timers are used in OutSystems can be extremely useful, particularly for long-running tasks.
Read more >
Timers for Asynchronous Polling Operations — the Good, the ...
When creating web applications we sometimes come across the need to perform a certain operation repeatedly over time, with a set period of ......
Read more >
Using Waitable Timers with an Asynchronous Procedure Call
The completion routine will be executed by the same thread that called SetWaitableTimer. This thread must be in an alertable state to execute ......
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