Spec-Zone.ru › Pony

Timers

[Source]

A hierarchical set of timing wheels.

actor tag Timers

Constructors

create

[Source]

Create a timer handler with the specified number of slop bits. No slop bits means trying for nanosecond resolution. 10 slop bits is approximately microsecond resolution, 20 slop bits is approximately millisecond resolution.

new tag create(
  slop: USize val = 20)
: Timers tag^

Parameters

  • slop: USize val = 20

Returns

  • Timers tag^

Public Behaviours

apply

[Source]

Sets a timer. Fire it if need be, schedule it on the right timing wheel, then rearm the timer.

be apply(
  timer: Timer iso)

Parameters

  • timer: Timer iso

cancel

[Source]

Cancels a timer.

be cancel(
  timer: Timer tag)

Parameters

  • timer: Timer tag

dispose

[Source]

Dispose of this set of timing wheels.

be dispose()

© 2016-2020, The Pony Developers
© 2014-2015, Causality Ltd.
Licensed under the BSD 2-Clause License.
https://stdlib.ponylang.io/time-Timers

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API