How to use the createTimer function from bindings

Find comprehensive JavaScript bindings.createTimer code examples handpicked from public code repositorys.

532
533
534
535
536
537
538
539
540
541
  );
}

const timerClock = clock || this._clock;

let timerHandle = rclnodejs.createTimer(
  timerClock.handle,
  this.context.handle,
  period
);
fork icon65
star icon244
watch icon27

+ 53 other calls in file

149
150
151
152
153
154
155
156
157
158
const MAX_TIMER_PERIOD_IN_MILLISECOND = 0x10c6f7a0b5ed;
if (period > 0x10c6f7a0b5ed || period < 0) {
  throw new RangeError('Parameter must be between ' + 0 + ' and ' + MAX_TIMER_PERIOD_IN_MILLISECOND);
}

let timerHandle = rclnodejs.createTimer(period, context.handle());
let timer = new Timer(timerHandle, period, callback);
debug('Finish creating timer, period = %d.', period);
this._timers.push(timer);
this.syncHandles();
fork icon65
star icon1
watch icon4

176
177
178
179
180
181
182
183
184
185
const MAX_TIMER_PERIOD_IN_MILLISECOND = 0x10c6f7a0b5ed;
if (period > 0x10c6f7a0b5ed || period &lt; 0) {
  throw new RangeError('Parameter must be between ' + 0 + ' and ' + MAX_TIMER_PERIOD_IN_MILLISECOND);
}

let timerHandle = rclnodejs.createTimer(period);
let timer = new Timer(timerHandle, period, callback);
debug('Finish creating timer, period = %d.', period);
this._timers.push(timer);
this.syncHandles();
fork icon65
star icon1
watch icon5

Other functions in bindings

Sorted by popularity

function icon

bindings.createKey is the most popular function in bindings (8616 examples)