public function __construct(SingaContinuation $cc = null) { if ($cc === null) { parent::__construct($this); } else { parent::__construct($cc); } }
public function __construct() { parent::__construct($this); register_shutdown_function(array($this, 'shutdown')); }