Bug 264122
| Summary: | NativePromise::all/allSettled can't take a rvalue vector. | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Jean-Yves Avenard [:jya] <jean-yves.avenard> |
| Component: | Web Template Framework | Assignee: | Jean-Yves Avenard [:jya] <jean-yves.avenard> |
| Status: | RESOLVED DUPLICATE | ||
| Severity: | Normal | CC: | webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | WebKit Nightly Build | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
Jean-Yves Avenard [:jya]
NativePromise::all/allSettled take a Vector<T>& rather than a const Vector<T>& ; so you can't use them with a rvalue parameter. Preventing to do things like:
```
SourceBuffer::ComputeSeekPromise::all(RunLoop::main(), WTF::map(*m_activeSourceBuffers, [&](auto&& sourceBuffer) {
return sourceBuffer->computeSeekTime(seekTarget);
}))
```
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/117881732>
Jean-Yves Avenard [:jya]
Will be done by bug 264082
*** This bug has been marked as a duplicate of bug 264082 ***