#Launch server as a future?

1 messages · Page 1 of 1 (latest)

fiery condor
#

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?

stark comet
#

You can spawn them without blocking server running ( if thats what you're asking )

slow condor
#

yea you can either tokio::join! them to the result of .run() or tokio::spawn() them as igaul said