[C++] Support FnOnce in ThreadPool::Submit
Open
Component: C++
Type: enhancement
- Dominant language
- C++
- Stars
- 17.1k
- Forks
- 4.3k
- Avg merge
- 3d 18h
- Merged PRs (30d)
- 91
Description
### Describe the enhancement requested
I'd like to use FnOnce for the async task scheduler stuff in the query context. However, there is currently a call to std::bind in ThreadPool::Submit that forces a copy.
### Component(s)
C++
Contributor guide
Assessment
This issue has not been assessed yet.