Replies: 1 comment 3 replies
-
You may want to check out DirectoryTree. It loads up a Tree using workers. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
This probably isn't the most efficient way to do this.
I am loading some data when an app mounts and then using it to fill a Tree. It all works but the app is blank until the processes I am calling finish. It doesn't look too good.
This is the code I am using
The
loadPipData()
function is in a separate class and it uses a subprocess call to get a list of packages from pip.I have been fooling around with async but, as you can expect, I am running into some issues using it. Currently all I have tried is using async in the
loadPipData()
andloadPackageData()
functions.I assume that the issue is that I am having to await the subprocess while it runs. Would it be better to use
create_subprocess_exec
and do all the waiting there or should it be in the app itself and not a class?Beta Was this translation helpful? Give feedback.
All reactions