Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork51
aipc, an async ipc library for aero#60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
base:master
Are you sure you want to change the base?
Uh oh!
There was an error while loading.Please reload this page.
Conversation
I'm not a fan of all these |
I could possibly move them to The unwraps are there because I explicitly wanted to prevent injecting |
fn main() { | ||
let mut rt = aipc::async_runtime::AsyncRuntime::new(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Instead of constructing a runtime manually at the start of the main function, it would be a much cleaner idea to initialize it lazily in the spawn function instead. So it will look likeapic::spawn(async {})
. In future we; after we get the rust userland port sorted out we can switch to usingtokio
as our async runtime.
f320b00
toe98c22d
Compare5b4b6dd
to6defcde
Compareebad1c8
tof1ba94d
Compare90094ea
to5222520
Compare1de1b56
tof7cd1a0
Compare51c9079
to9105725
Compare
'nuff said.