Main implements TOKIO

This commit is contained in:
Maddox Werts 2025-08-02 16:23:35 -04:00
parent 80c6b51d01
commit 5d5df73b7c

View file

@ -5,11 +5,13 @@ mod backend;
use backend::Backend; use backend::Backend;
use std::io::Result; use std::io::Result;
use std::rc::Rc; use std::rc::Rc;
use tokio;
// Entry Point // Entry Point
fn main() -> Result<()> { #[tokio::main]
async fn main() -> Result<()> {
// Creating a Backend // Creating a Backend
let backend = Rc::new(Backend::new(false)?); let backend = Rc::new(Backend::new(true).await?);
// Creating a new App // Creating a new App
let app = App::new(Rc::clone(&backend))?; let app = App::new(Rc::clone(&backend))?;