MCPcopy Create free account
hub / github.com/apache/arrow / cost

Method cost

cpp/src/arrow/util/async_util.h:96–96  ·  view source on GitHub ↗

The cost of the task A ThrottledAsyncTaskScheduler can be used to limit the number of concurrent tasks. A custom cost may be used, for example, if you would like to limit the number of tasks based on the total expected RAM usage of the tasks (this is done in the scanner)

Source from the content-addressed store, hash-verified

94 /// tasks based on the total expected RAM usage of the tasks (this is done in the
95 /// scanner)
96 virtual int cost() const { return 1; }
97 /// The name of the task
98 ///
99 /// This is used for debugging and traceability. The returned view must remain

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected