MongooseA text-based world full of questionable inventions.

All help topics · Link to this topic

Showing help on 'ticks_left()'

Syntax: ticks_left () => INT
seconds_left () => INT

These two functions return the number of ticks or seconds (respectively) left to the current task before it will be forcibly terminated. These are useful, for example, in deciding when to fork another task to continue a long-lived computation.