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

Refactor IO following Cats #505

Merged
merged 11 commits into from
Dec 11, 2017
Merged

Refactor IO following Cats #505

merged 11 commits into from
Dec 11, 2017

Conversation

pakoito
Copy link
Member

@pakoito pakoito commented Dec 10, 2017

Makes IO at least an order of magnitude faster by following the changes in these diffs:
typelevel/cats-effect#90
typelevel/cats-effect#95

The second diff is still WIP so I'll keep an eye for any changes we can apply too.

@pakoito pakoito requested review from raulraja and a team December 10, 2017 23:30
}
}
override fun <B> map(f: (A) -> B): IO<B> =
// Allowed to do 32 map operations in sequence before
Copy link
Member Author

Choose a reason for hiding this comment

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

Quack


import kategory.Either

interface IOFrame<in A, out R> : (A) -> R {
Copy link
Member

Choose a reason for hiding this comment

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

Any way to make these private or protected so they are not abused in the IO public API?

private typealias Callback = (Either<Throwable, Any?>) -> Unit

@Suppress("UNCHECKED_CAST")
object IORunLoop {
Copy link
Member

Choose a reason for hiding this comment

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

Same as previous comment regarding visibility

Copy link
Member Author

Choose a reason for hiding this comment

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

Fixed on Master

@raulraja raulraja merged commit f7fbc4f into master Dec 11, 2017
@raulraja raulraja deleted the paco-iorefactor branch December 11, 2017 08:52
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.

2 participants