Module heph::timer[][src]

Expand description

Module with time related utilities.

This module provides three types.

  • Timer is a stand-alone future that returns DeadlinePassed once the deadline has passed.
  • Deadline wraps another Future and checks the deadline each time it’s polled.
  • Interval implements Stream which yields an item after the deadline has passed each interval.

Structs

A Future that wraps another future setting a deadline for it.

Type returned when the deadline has passed.

A Stream that yields an item after an interval has passed.

A Future that represents a timer.