A setInterval interface for async method