Constructor

Methods

Class: cogen.core.events.Sleep

A operation to pausing the coroutine for a specified amount of time.

Usage:

yield events.Sleep(time_object)
  • time_object - a datetime or timedelta object, or a number of seconds
yield events.Sleep(timestamp=ts)
  • ts - a timestamp

Constructor

__init__ (self, val)

Methods

__init__ (self, val)