♻️ Convierte initialize() y Application en async
`async_trait` se re-exporta desde `pagetop` y se añade al preludio; ya no es necesario declararlo como dependencia en las extensiones. `initialize()` es ahora verdaderamente `async` (con `.await`), y `Application::new()` y `prepare()` pasan también a ser funciones `async`.
This commit is contained in:
parent
54d5b3e53d
commit
8aa4372bdf
16 changed files with 159 additions and 107 deletions
|
|
@ -72,10 +72,10 @@ pub fn register_actions() {
|
|||
|
||||
// **< INICIALIZA LAS EXTENSIONES >*****************************************************************
|
||||
|
||||
pub fn initialize_extensions() {
|
||||
pub async fn initialize_extensions() {
|
||||
trace::info!("Calling application bootstrap");
|
||||
for e in EXTENSIONS.get().into_iter().flatten() {
|
||||
e.initialize();
|
||||
e.initialize().await;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue