Skip to content

Cannot build AsyncView in Cursive::call_on_name() #6

@matthiasbeyer

Description

@matthiasbeyer

Hi,

I have the usecase where I need to build a AsyncView from Cursive::call_on_name().

I'm not sure how to do that.

The usecase is: I have a sidebar with a list of items and as soon one is selected, I want to add a tab (via cursive-tabs) in the main view, loading something. The loading process can take time (minutes!), so I figured to use cursive-async-view. But because I want to create the view in Cursive::call_on_name(), I cannot use &mut siv to pass to the constructor of AsyncView.

Do you have an idea how to work around this?

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