classes resumptiondata and resumptionbase

July 9, 2022 ยท View on GitHub

<< Back to reference manual

Classes that represents "bare" captured continuations that are not memory-managed by the library.

class resumption_base {
public:
  virtual ~resumption_base() { }
};

template <typename Out, typename Answer>
class resumption_data : public resumption_base { };
  • typename Out - In a proper resumption, the output type of the command that suspended the computation. In a plain resumption, the input type of the lifted function. Can be void.

  • typename Answer - The return type of the suspended computation.