Bug 264122 - NativePromise::all/allSettled can't take a rvalue vector.
Summary: NativePromise::all/allSettled can't take a rvalue vector.
Status: RESOLVED DUPLICATE of bug 264082
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Template Framework (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Jean-Yves Avenard [:jya]
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2023-11-02 17:13 PDT by Jean-Yves Avenard [:jya]
Modified: 2023-11-02 23:36 PDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jean-Yves Avenard [:jya] 2023-11-02 17:13:05 PDT
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);
    }))
```
Comment 1 Radar WebKit Bug Importer 2023-11-02 17:13:26 PDT
<rdar://problem/117881732>
Comment 2 Jean-Yves Avenard [:jya] 2023-11-02 23:36:33 PDT
Will be done by bug 264082

*** This bug has been marked as a duplicate of bug 264082 ***