MCPcopy Create free account
hub / github.com/3rdparty/libprocess / ~Promise

Method ~Promise

include/process/future.hpp:796–806  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

794
795template <typename T>
796Promise<T>::~Promise()
797{
798 // Note that we don't discard the promise as we don't want to give
799 // the illusion that any computation hasn't started (or possibly
800 // finished) in the event that computation is "visible" by other
801 // means. However, we try and abandon the future if it hasn't been
802 // associated or set (or moved, i.e., `f.data` is true).
803 if (f.data) {
804 f.abandon();
805 }
806}
807
808
809template <typename T>

Callers

nothing calls this directly

Calls 1

abandonMethod · 0.80

Tested by

no test coverage detected