mirror of
https://github.com/DioxusLabs/dioxus
synced 2025-03-03 06:47:31 +00:00
21 lines
339 B
Rust
21 lines
339 B
Rust
use std::pin::Pin;
|
|
|
|
use dioxus_core::prelude::*;
|
|
use futures::Future;
|
|
|
|
fn main() {}
|
|
|
|
const App: FC<()> = |cx| {
|
|
let mut fut = cx.use_hook(
|
|
|| {
|
|
//
|
|
Box::pin(async { loop {} }) as Pin<Box<dyn Future<Output = ()>>>
|
|
},
|
|
|f| f,
|
|
|_| {},
|
|
);
|
|
|
|
cx.submit_task(fut);
|
|
|
|
todo!()
|
|
};
|