When sfetch_cancel is called between sfetch_send and sfetch_dowork, then the response callback is called with cancelled flag but not finished.
This behavior differs from documentation and makes fetch callback implementation less straightforward.
I modified sokol fetch unit tests to reproduce a functional behavior that doesn't match with documentation, submitted as PR #881
Side note: Thanks for the incredibly well thought, easy to use and yet very efficient sokol APIs.
Hi,
When sfetch_cancel is called between sfetch_send and sfetch_dowork, then the response callback is called with cancelled flag but not finished. This behavior differs from documentation and makes fetch callback implementation less straightforward.
I modified sokol fetch unit tests to reproduce a functional behavior that doesn't match with documentation, submitted as PR #881
Side note: Thanks for the incredibly well thought, easy to use and yet very efficient sokol APIs.
Cheers, Guillaume