Sets the async flag that is true when it is an async function
bool $async Async flag:
$this
public function setAsync($async) { $this->async = (bool) $async; return $this; }