add function `dispatch_main_queue_drain_till_empty` for manually drain main queue in main thread;