[async-system-store-in-lambda]
| 39 | |
| 40 | //! [async-system-store-in-lambda] |
| 41 | Future<ReadJsonResult<Cesium3DTiles::Subtree>> SubtreeFileReader::load( |
| 42 | const AsyncSystem& asyncSystem, |
| 43 | const std::shared_ptr<IAssetAccessor>& pAssetAccessor, |
| 44 | const std::string& url, |
| 45 | const std::vector<IAssetAccessor::THeader>& headers) const noexcept { |
| 46 | return pAssetAccessor->get(asyncSystem, url, headers) |
| 47 | .thenInWorkerThread([asyncSystem, pAssetAccessor, this]( |
| 48 | std::shared_ptr<IAssetRequest>&& pRequest) { |
| 49 | return this->load(asyncSystem, pAssetAccessor, pRequest); |
| 50 | }); |
| 51 | } |
| 52 | //! [async-system-store-in-lambda] |
| 53 | |
| 54 | Future<ReadJsonResult<Subtree>> SubtreeFileReader::load( |
no test coverage detected