MCPcopy Create free account
hub / github.com/Tencent/tgfx / Async

Method Async

src/core/DataSource.h:51–59  ·  view source on GitHub ↗

* Wraps the existing data source into an asynchronous DataSource and starts loading the data * immediately. */

Source from the content-addressed store, hash-verified

49 * immediately.
50 */
51 static std::unique_ptr<DataSource> Async(std::unique_ptr<DataSource> source) {
52#ifndef TGFX_USE_THREADS
53 return source;
54#endif
55 if (source == nullptr) {
56 return nullptr;
57 }
58 return std::make_unique<AsyncDataSource<T>>(std::move(source));
59 }
60
61 virtual ~DataSource() = default;
62

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected