support WebWorker, add Mail#wait method