-
-
Notifications
You must be signed in to change notification settings - Fork 3
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
Client (high-level API) #174
Conversation
Pull Request Test Coverage Report for Build 9259052264Details
💛 - Coveralls |
Merged all tasks so far! Now here comes the grand finale? :-) |
Merged all tasks so far! Now here comes the grand finale? :-)
Haha exactly. Let me rebase and clean a bit, I let you know when it is
ready for review and discussion.
|
feat: init Scheduler::run_task fn feat: ensure that Scheduler is Send fix: removed task utilities from Scheduler fix: adjust code after review feat: move run task to a dedicated Resolver init client workspace merge main + authenticate branches adjust code with new resolver api fix tasks re-export make fetch output hashmap keys return seq or uid
I think it is reviewable (just misses #193), but I don't know how to proceed. The file |
Closing in favour of https://github.com/soywod/imap-client. Code will adjust depending on your decisions (mostly talking about tasks). |
That was fast 🚀 |
Despite the fact that
imap-flow
abstractions are really good (they give a lot of flexibility), I believe most of the casual users (including myself withemail-lib
) do not care about this Sans IO abstraction. They just need a simple API where they can execute simple tasks, in serie. A bit like does theimap
crate.So far there is:
ClientFlow
, the low-level flow for managing commandsScheduler
, the mid-level flow for scheduling tasks, based onClientFlow
(see also Task runner (mid-level API), part 1 #172)What I try to propose here is the high-level
Client
, composed of aStream
andScheduler
. Users could just connect to a server (TCP), ugrade to TLS and then execute actions likelist_capabilities
orfetch
.I would love feedback on the idea.