flush function source async.flush() Flushes the task queue immediately so all events or other tasks will be immediately invoked.