Skip to Main Content
Effective Concurrency in Go
book

Effective Concurrency in Go

by Burak Serdar
April 2023
Intermediate to advanced content levelIntermediate to advanced
212 pages
4h 47m
English
Packt Publishing
Content preview from Effective Concurrency in Go

7

Timers and Tickers

Many long-lived applications impose limits on how long an operation can last. They also perform tasks such as health checks periodically to ensure all components are working as expected. Many platforms provide high-precision timer operations, and the Go standard library provides portable abstractions of these services in the time package. We will look at timers and tickers in this chapter. Timers are tools for doing things later, and tickers are tools for doing things periodically.

The key sections we will review in this chapter are the following:

  • Timer – running something later
  • Tickers – running something periodically

At the end of this chapter, you will have seen how to work with timers and tickers and how you can monitor ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Concurrency in Go

Concurrency in Go

Katherine Cox-Buday

Publisher Resources

ISBN: 9781804619070Supplemental Content