// Test: $time_limit fires timeout for a requestor that never completes var never_complete = function(callback, value) { return null } var timed = $time_limit(never_complete, 0.5) var _t = timed(function(val, reason) { if (val != null) disrupt if (reason == null) disrupt $stop() })