Support sync chunked operations in the mainloop