Skip to main content
The Go SDK supports concurrent document processing using goroutines and async job management with RunJob methods.

Concurrent Processing

Process multiple documents simultaneously with goroutines:

Parse Multiple Documents


Rate Limiting

Control concurrency with a semaphore pattern:

Async Jobs (RunJob)

For documents that take longer to process, use RunJob methods to avoid timeouts:

Start Async Job

Poll for Completion

All Async Methods

Each endpoint has a RunJob variant:

Context Cancellation

Use context for timeouts and cancellation:

Error Handling

Handle errors in concurrent operations:

When to Use Async Jobs

Use RunJob When

Processing large documents (50+ pages), running long extract operations, or integrating with webhooks.

Use Run When

Processing small documents, need immediate results, or simple scripts where waiting is acceptable.

Next Steps