The attribute reference Expression

Syntax

  async <expression>

Description

By default, hyperscript synchronizes on any Promises that go through its runtime. This is usually what is desired but at times you may want to avoid this synchronization when evaluating an expression. To do so, you can use the async keyword

Examples

<button _="on click call async generatePromise() ">
  Generate a promise but don't block
</button>