/*
Q: Does [sleep 1#INF] or [spawn(1#INF)] add anything to
the scheduler?
A: [sleep 1#INF] and [sleep(1#INF)] waits a single tick.
[spawn(1#INF)] does seem to add to the scheduler,
according to memory usage. I don't know if the code
will ever execute or how long it would take.
*/
world
fps = 60
var some_delay = 1#INF
mob
var blah = 0
verb/test_spawn()
for(var/n in 1 to 1e3)
spawn(some_delay)
blah++
verb/test_sleep()
src << "Start time: [world.time]"
sleep some_delay
src << "End time: [world.time]"
src << "Welcome past infinity."
verb/check_blah()
src << blah
As far as the bug report goes:
I feel like sleep 1#INF should halt the proc forever, never returning anything unless waitfor = FALSE;
and spawn(1#INF) just shouldn't add anything to the scheduler because it's a waste of memory.