{#await thePromise}

loading...

{:then theValue}

the value is {theValue}

{:catch theError}

oh no! {theError.message}

{/await} {#if true}

true!

{/if}