---
layout: docs
title: setIsAsync
id: class.Facebook.HackCodegen.CodegenFunctionish.setIsAsync
docid: class.Facebook.HackCodegen.CodegenFunctionish.setIsAsync
permalink: /docs/reference/class.Facebook.HackCodegen.CodegenFunctionish.setIsAsync/
---
# Facebook\\HackCodegen\\CodegenFunctionish::setIsAsync()




``` Hack
public function setIsAsync(
  bool $value = true,
): this;
```




## Parameters




+ ` bool $value = true `




## Returns




* ` this `