deinstapel / deinstapel/cursive-async-view
Cannot build AsyncView in Cursive::call_on_name()
- Dominant language
- Rust
- Stars
- 19
- Forks
- 2
- PR merge metrics
- No merged PRs in 30d
Description
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?
Contributor guide
No contributing guide indexed for this repository
Research direction
No files or tests are identified. Start by reading AsyncView's constructor alongside Cursive::call_on_name() and the cursive-tabs integration described in the issue. Done would require a documented or implemented way to create the loading view in that callback while handling the long-running load.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- cli
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100