Skip to content

Add smol async runtime support#699

Merged
hecrj merged 5 commits into
iced-rs:masterfrom
JayceFayne:smol
Jan 15, 2021
Merged

Add smol async runtime support#699
hecrj merged 5 commits into
iced-rs:masterfrom
JayceFayne:smol

Conversation

@JayceFayne
Copy link
Copy Markdown

@JayceFayne JayceFayne commented Jan 13, 2021

This pull adds support for the smol async runtime to iced!

@JayceFayne JayceFayne force-pushed the smol branch 2 times, most recently from 50260df to 37713f3 Compare January 13, 2021 16:22
@JayceFayne JayceFayne changed the title add smol runtime add smol async runtime Jan 13, 2021
@JayceFayne JayceFayne changed the title add smol async runtime add smol async runtime support Jan 13, 2021
@JayceFayne JayceFayne changed the title add smol async runtime support Add smol async runtime support Jan 13, 2021
@hecrj hecrj added the feature New feature or request label Jan 13, 2021
@hecrj hecrj added this to the 0.3.0 milestone Jan 13, 2021
Copy link
Copy Markdown
Member

@hecrj hecrj left a comment

Choose a reason for hiding this comment

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

Thanks for this! Glad to see that supporting smol wasn't too much of a hassle.

I made some changes to fix the time::Every implementation, as smol::Timer::interval doesn't seem to exist.

I think this should be good to go! 🍻

@hecrj hecrj merged commit 2056304 into iced-rs:master Jan 15, 2021
@JayceFayne
Copy link
Copy Markdown
Author

JayceFayne commented Jan 15, 2021

Thanks for this! Glad to see that supporting smol wasn't too much of a hassle.

Yeah, thanks to your Executor wrapper it was actually just a few lines of code!

I made some changes to fix the time::Every implementation, as smol::Timer::interval doesn't seem to exist.

Hmm, it should exist, smol just reexports the async-io Timer implemented here 🤔

@hecrj
Copy link
Copy Markdown
Member

hecrj commented Jan 15, 2021

Hmm, it should exist, smol just reexports the async-io Timer implemented here

Yeah, my bad. Looks like I needed to run cargo update. Restored in 9da0a3d.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants