Skip to content

Calling async functions from trunk #466

@emilk

Description

@emilk

As I understand it, trunks one and only entrypoint is fn main, which cannot be async, which means we cannot call async code in trunk apps, which is sad.

This came up today when I realized eframe::start_web is now async (since emilk/egui#2107), and eframe_template uses trunk. (This async stuff was added in order to support WebGPU).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions