21 lines
386 B
Rust
21 lines
386 B
Rust
use futures_lite::FutureExt;
|
|
use wove::Wove;
|
|
|
|
pub async fn go(wove: &Wove) -> std::io::Result<()> {
|
|
let listener = wove::net::TcpListener::bind(wove, "localhost:3000").await?;
|
|
|
|
todo!()
|
|
}
|
|
|
|
pub fn main() {
|
|
let wove = Wove::new().unwrap();
|
|
let fut = async {
|
|
let run = async { wove.run().await? };
|
|
let go = go(&wove);
|
|
|
|
go.race(run).await
|
|
};
|
|
|
|
pollster::block_on(fut).unwrap();
|
|
}
|