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

Schedulers #19

Closed
Miha-x64 opened this issue Mar 15, 2018 · 1 comment
Closed

Schedulers #19

Miha-x64 opened this issue Mar 15, 2018 · 1 comment

Comments

@Miha-x64
Copy link
Owner

Add a way to subscribe on a certain thread. For mapper properties, add a way to compute on another thread. Along with #15, this may work like

// list: DiffProperty<List<Item>, SomeDiffMeta>
list.mapWithDiff(
    computeOn = someBackgroundScheduler,
    notifyOn = mainThread
) { items, meta ->
    items to DiffUtil.doStuff(items, meta)
}
@Miha-x64
Copy link
Owner Author

See also b0910c2 and 89d1053.

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

No branches or pull requests

1 participant