David Glasser
3d75f53149
Client sync queue: better logic around setTimeout
...
In the old code, if you queued a task, did something which flushes the
queue (runTask, flush, or drain), and then queued another task, you'd
end up with two pending timeouts, rather than zero. With this change,
we're careful to never have two pending timeouts, and also to clear the
timeout if we're about to run all current tasks.
2014-08-05 14:50:21 -07:00
..
2014-06-18 16:53:59 -07:00
2013-07-25 18:54:42 -07:00
2013-07-25 18:54:42 -07:00
2013-07-25 18:54:42 -07:00
2013-07-25 18:54:42 -07:00
2014-05-28 13:23:04 +10:00
2014-04-30 10:08:16 -07:00
2014-07-18 16:35:39 -07:00
2013-07-30 15:37:06 -07:00
2014-05-28 21:01:46 -07:00
2014-07-21 18:34:28 -07:00
2013-07-25 18:54:42 -07:00
2014-05-07 18:04:29 -07:00
2014-07-18 16:07:02 -07:00
2013-12-23 17:18:47 -08:00
2013-07-25 18:54:41 -07:00
2014-02-21 11:49:36 -08:00
2013-12-23 12:53:58 -08:00
2013-07-25 18:54:43 -07:00
2014-02-24 23:58:31 -08:00
2014-08-01 14:58:11 -07:00
2014-06-24 00:27:34 -07:00
2014-05-08 12:12:45 -07:00
2014-05-08 12:12:45 -07:00
2014-05-08 12:12:45 -07:00
2013-10-03 13:56:03 -07:00
2014-03-17 15:49:27 -07:00
2014-05-21 14:12:58 -07:00
2014-02-12 17:58:56 -08:00
2013-07-25 18:54:43 -07:00
2014-02-03 10:36:33 -08:00
2014-01-29 13:29:44 -08:00
2013-10-08 20:03:02 -07:00
2014-06-23 20:03:44 -07:00
2013-07-25 18:54:43 -07:00
2013-12-04 12:46:47 -08:00
2014-05-21 14:12:58 -07:00
2014-04-30 23:32:24 -07:00
2014-05-09 14:18:11 -07:00
2014-03-03 21:11:57 -08:00
2013-12-28 11:39:40 -06:00
2014-05-27 17:32:04 -07:00
2014-02-25 00:28:23 -08:00
2014-05-09 14:18:11 -07:00
2014-05-20 17:32:04 -07:00
2014-03-22 00:47:02 -07:00
2014-07-16 14:04:12 -07:00
2014-06-30 20:28:02 -07:00
2014-05-28 11:56:09 -07:00
2014-02-25 00:45:22 -08:00
2013-07-25 18:54:42 -07:00
2014-02-18 15:47:42 -08:00
2014-02-21 11:49:36 -08:00
2014-04-08 01:02:46 -07:00
2013-10-08 19:58:48 -07:00
2013-08-02 11:19:08 -07:00
2013-07-25 18:54:43 -07:00
2014-07-01 11:01:55 -07:00
2014-08-05 12:56:07 -07:00
2014-06-09 15:53:17 -07:00
2014-01-16 16:09:58 -08:00
2014-05-09 14:18:11 -07:00
2014-08-05 14:50:21 -07:00
2014-05-28 13:23:04 +10:00
2014-06-04 18:57:15 -07:00
2014-08-01 15:01:26 -07:00
2014-07-29 11:01:42 -07:00
2014-07-25 17:24:32 -07:00
2014-05-20 17:32:15 -07:00
2014-04-30 10:08:16 -07:00
2014-05-20 17:35:57 -07:00
2014-08-04 19:06:15 -07:00
2013-07-25 18:54:43 -07:00
2014-03-26 20:57:58 -07:00
2014-04-17 16:12:24 -07:00
2013-07-25 18:54:43 -07:00
2014-03-16 21:18:29 -07:00
2014-06-26 15:08:41 -07:00
2014-02-27 15:20:43 -08:00
2013-07-25 18:54:43 -07:00
2014-04-21 13:39:36 -07:00
2013-07-25 18:54:43 -07:00
2014-06-09 20:42:48 -07:00
2014-07-07 16:23:14 -07:00
2014-07-28 12:23:54 -07:00
2014-07-10 14:02:14 -07:00
2014-07-28 12:23:54 -07:00
2014-08-01 16:44:04 -07:00
2014-06-09 20:42:49 -07:00
2013-12-02 17:29:35 -08:00
2014-03-24 20:10:39 -07:00
2013-07-25 18:54:40 -07:00
2014-07-01 11:01:55 -07:00
2014-07-24 18:34:34 -07:00
2014-07-24 22:21:46 -07:00
2014-07-15 17:10:46 -07:00
2014-07-30 14:37:00 -07:00
2014-07-30 14:37:27 -07:00
2014-05-09 14:18:11 -07:00
2014-07-13 11:30:32 -07:00
2014-02-21 11:49:36 -08:00
2014-05-27 13:26:56 -07:00
2014-07-01 13:29:04 -07:00
2014-05-09 14:18:11 -07:00