Skip to content

Latest commit

 

History

History
 
 

updatabletimer

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

Updatable Timer Sample

A helper structure that supports blocking sleep that can be rescheduled at any moment.

Demonstrates:

  • Timer and its cancellation
  • Signal Channel
  • Selector used to wait on both timer and channel

Steps to run this sample:

  1. Run a Temporal service.
  2. Run the following command to start the worker
go run updatabletimer/worker/main.go
  1. Run the following command to start the example
go run updatabletimer/starter/main.go
  1. Run the following command to update the timer wake-up time
go run updatabletimer/updater/main.go