Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
matthiasbeyer opened this issue Jul 7, 2020 · 0 comments
Open

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

matthiasbeyer opened this issue Jul 7, 2020 · 0 comments

Comments

@matthiasbeyer
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant