Create a resolved Promise with value
| 65 | |
| 66 | /// Create a resolved Promise with value |
| 67 | static Promise<T> resolve(const T& value) FL_NOEXCEPT { // okay static in header |
| 68 | auto p = create(); |
| 69 | p.complete_with_value(value); |
| 70 | return p; |
| 71 | } |
| 72 | |
| 73 | /// Create a resolved Promise with value (move version) |
| 74 | static Promise<T> resolve(T&& value) FL_NOEXCEPT { // okay static in header |