Able to use sync or async API with cursor