mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2025-04-28 22:39:47 +00:00
Load all plugins asynchronously without waiting for completion
This commit is contained in:
parent
5bca1908b1
commit
f885db8f1b
@ -91,9 +91,9 @@ public partial class MainLayout : LayoutComponentBase, IMessageBusReceiver, IDis
|
|||||||
// Ensure that all internal plugins are present:
|
// Ensure that all internal plugins are present:
|
||||||
await PluginFactory.EnsureInternalPlugins();
|
await PluginFactory.EnsureInternalPlugins();
|
||||||
|
|
||||||
// Load (but not start) all plugins:
|
// Load (but not start) all plugins, without waiting for them:
|
||||||
var pluginLoadingTimeout = new CancellationTokenSource(TimeSpan.FromSeconds(5));
|
var pluginLoadingTimeout = new CancellationTokenSource(TimeSpan.FromSeconds(5));
|
||||||
await PluginFactory.LoadAll(pluginLoadingTimeout.Token);
|
_ = PluginFactory.LoadAll(pluginLoadingTimeout.Token);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Register this component with the message bus:
|
// Register this component with the message bus:
|
||||||
|
Loading…
Reference in New Issue
Block a user