view tests/data/timer.js @ 1123:6457999bfb7a

lib: irc_bot_post use a linked list instead Using a pipe isn't a good idea since it's a byte stream in which every invocation can arrive partially. The additional threads now interrupts poll(2) using SIGUSR1.
author David Demelier <markand@malikania.fr>
date Sun, 28 Nov 2021 11:19:18 +0100
parents 371e1cc2c697
children
line wrap: on
line source

count = 0;

function onLoad()
{
	if (typeof (type) === "undefined")
		throw Error("global timer type not defined");

	t = new Irccd.Timer(type, 50, function () {
		count += 1;
	});

	t.start();
}