No, the specification does not provide for this. There is no restriction on how long a promise should be for a settlement. And this includes an endless long time, known as a promise, never resolving / never settling, or forever awaiting a promise. (see also promise terminology )
This term may be used intentionally here and carry a conditional meaning .
There are even promising implementations that offer a primitive Promise.never(for example, in creed ) to optimize memory consumption for the case when you know that your promise will not be fulfilled.
Bergi source
share