Skip to content

Provide access to the event loop #2127

@mjhouse

Description

@mjhouse

Is your feature request related to a problem? Please describe.
I am attempting to write a program that needs to poll a function on a regular basis.

Describe the solution you'd like
I would like to be able to provide a function to the tauri::Builder instance that will be called once-per-iteration inside the event loop.

Describe alternatives you've considered
I've considered and partially implemented a thread-based solution which will be much more complex and difficult to work with.

Additional context
The program in question is for p2p chat, but I think most large applications that communicate across a network would need similar functionality.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions