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

Method AsyncDataSource

src/core/DataSource.h:123–126  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

121class AsyncDataSource : public DataSource<T> {
122 public:
123 explicit AsyncDataSource(std::unique_ptr<DataSource<T>> source) {
124 task = std::make_shared<DataTask<T>>(std::move(source));
125 Task::Run(task);
126 }
127
128 ~AsyncDataSource() override {
129 task->cancel();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected