Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question: Is WriteCallback asynchronous? #1023

Closed
vymao opened this issue Feb 3, 2024 · 1 comment
Closed

Question: Is WriteCallback asynchronous? #1023

vymao opened this issue Feb 3, 2024 · 1 comment
Assignees

Comments

@vymao
Copy link

vymao commented Feb 3, 2024

I'm curious how WriteCallback functions exactly. If send multiple requests synchronously with a WriteCallback, does cpr call WriteCallback in a separate thread? Or will my function block until each request receives a callback in order?

@COM8 COM8 self-assigned this Feb 4, 2024
@COM8
Copy link
Member

COM8 commented Feb 4, 2024

It's basically a wrapper around CURLOPT_WRITEFUNCTION. More information is available here: https://curl.se/libcurl/c/CURLOPT_WRITEFUNCTION.html

@COM8 COM8 closed this as completed Feb 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants