Async support for hooks