| 1362 | } |
| 1363 | |
| 1364 | bool Http::setCancelRequest( Uint64 reqId, bool resetCancelCallback ) { |
| 1365 | Lock l( mCurRequestsMutex ); |
| 1366 | auto found = mCurRequests.find( reqId ); |
| 1367 | if ( found != mCurRequests.end() ) { |
| 1368 | found->second->cancel( resetCancelCallback ); |
| 1369 | return true; |
| 1370 | } |
| 1371 | return false; |
| 1372 | } |
| 1373 | |
| 1374 | #if EE_PLATFORM == EE_PLATFORM_EMSCRIPTEN |
| 1375 | struct WGetAsyncRequest { |
no test coverage detected