# E0317: newline is not allowed between 'async' and 'function'

Async functions have the `async` keyword followed by the `function` keyword. It is a syntax error to include a line break in between `async` and `function`:

    function fetch(o: JSONOptions): Promise<object>;
    function fetch(o: StreamOptions): Promise<Stream>;
    async
    function fetch(options): Promise<any> {
      /* ... */
    }

To fix this error, put `function` on the same line as `async`:

    function fetch(o: JSONOptions): Promise<object>;
    function fetch(o: StreamOptions): Promise<Stream>;
    async function fetch(options): Promise<any> {
      /* ... */
    }

Introduced in quick-lint-js version 2.10.0.

Documentation for other errors