This repository was archived by the owner on Apr 8, 2020. It is now read-only.
This repository was archived by the owner on Apr 8, 2020. It is now read-only.
[domain-task] addTask: return promise #1249
Closed
Description
Wouldn't it be more useful if addTask
would return the original promise?
One could then write const response = await addTask(fetch('/api/test'));
instead of
const task = fetch('/api/test');
addTask(task);
const response = await task;
Edit: @DanHarman also mentioned it.
Metadata
Metadata
Assignees
Labels
No labels