qtimer: Register a timer task

Description Usage Arguments Value Author(s) Examples

View source: R/timer.R

Description

A convenience function for creating a QTimer object and registering and R handler that is fired after a specified delay. The timer continues to fire until it is stopped. This does not work yet.

Usage

1
qtimer(delay, handler)

Arguments

delay

The delay, in milliseconds.

handler

The R function to fire after the delay.

Value

A QTimer object. To stop it, call the stop method.

Author(s)

Michael Lawrence

Examples

1
2
3
4
5
timer <- qtimer(2000, function() {
  print("time out")
})
timer$singleShot <- TRUE
timer$start()

qtbase documentation built on May 19, 2017, 6:27 p.m.

Search within the qtbase package
Search all R packages, documentation and source code