Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

enhancement(operations): abstracts runtime into runtime.rs #1098

Merged
merged 4 commits into from
Nov 1, 2019

Conversation

Michael-J-Ward
Copy link
Contributor

@Michael-J-Ward Michael-J-Ward commented Oct 26, 2019

#1085

The tokio runtime is still leaking out via Shutdown and TaskExecutor types. I haven't taken time to investigate if those need to be wrapped or abstracted away in some other way.

Additionally, test_utils and main.rs used the tokio::Builder api to control the runtime's threadcount. Instead of creating a new Builder, I just provided alternate constructor methods on Runtime.

And obviously, I haven't implemented a free standing spawn function yet.

But other than that, it compiles and tests are passing. Let me know what you think

Copy link
Contributor

@LucioFranco LucioFranco left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks great! Thanks, left some comments :)

@Michael-J-Ward
Copy link
Contributor Author

Roger, I'll address these this weekend!

Signed-off-by: Lucio Franco <luciofranco14@gmail.com>
@LucioFranco LucioFranco marked this pull request as ready for review November 1, 2019 01:39
@LucioFranco
Copy link
Contributor

@Michael-J-Ward Hey! thank you for this! I ended up needing this for some tests I was running so I went ahead and just applied my changes, thank you a ton for doing all the heavy work!

Signed-off-by: Lucio Franco <luciofranco14@gmail.com>
@binarylogic binarylogic changed the title enhancement(operations): abstracts runtime into runtime.rs chore(operations): Abstracts runtime into runtime.rs Nov 1, 2019
@binarylogic
Copy link
Contributor

Thanks @Michael-J-Ward !

@LucioFranco LucioFranco changed the title chore(operations): Abstracts runtime into runtime.rs enhancement(operations): abstracts runtime into runtime.rs Nov 1, 2019
@LucioFranco LucioFranco merged commit 70482ab into vectordotdev:master Nov 1, 2019
@Michael-J-Ward
Copy link
Contributor Author

Hey @LucioFranco and @binarylogic , thanks for the true "Good first issue!" It was a great way for me to get my feet wet with Rust development.

@LucioFranco
Copy link
Contributor

@Michael-J-Ward great! I hope to get more of these types of issues out! I hopefully will get to posting them to TWIR too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants