#Launch server as a future?
1 messages · Page 1 of 1 (latest)
1 messages · Page 1 of 1 (latest)
Hi, I have a few functions executed as a never ending future's that are constantly updating hash-maps. Is it possible for me to launch these futures in which .awaiting will continue forever, but also launch the Actix webserver?
You can spawn them without blocking server running ( if thats what you're asking )
yea you can either tokio::join! them to the result of .run() or tokio::spawn() them as igaul said