Add a nogil function to help async example.