Add docs for in_thread