-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Improve the API reference #4133
Comments
If you allow it, I would like to contribute to this myself. I am implementing my own programming language and need to learn more about the real-world asynchronous runtimes before deciding on what the concurrency story will look like, and a deep dive into an existing framework would help me tremendously. Basically, it's a trade offer. I receive:
You receive:
The effort I can extend on this is limited to a about one workweek this June. My contribution can be as localized or as extensive as you'd like, given the time constraints. I can also start with some small changes before you decide if you are interested in my output. |
Hey, thanks for filing this! We were planning to jump on it ourselves (as there is a lot of work to revise all the API entry points), and it's easy to split the work -- esp. taking into account that we are trying to align the documentation approach across the libraries, and thus initially there will be a lot of ping-pong discussions. We would appreciate your help! If it works for you, I propose the following:
For inspiration, I suggest looking at Kotlin/kotlinx-datetime#367, and I also would ask you to avoid the Even if this is not working, I still appreciate the way you handled and proposed it, thanks! |
Thank you for your response, being open to collaboration, and describing the circumstances in detail. I've looked through Kotlin/kotlinx-datetime#367, noting both how the documentation proposed in the PR is structured and what questions were raised during the review; I've also browsed through https://kotlinlang.org/api/kotlinx.coroutines/kotlinx-coroutines-core/ and familiarized myself with the API entries you have. I will try my best to follow the established form. The plan you propose does look good! Let's double-check the specifics, then:
Does this sound about right? In the meantime, I've opened a PR in my own fork (https://github.com/globsterg/kotlinx.coroutines/pull/1/files) where I will keep a mishmash of improvements of small things that I notice as I go. |
Hi! I think I will do this:
Even though I only touched some parts of the framework, I had to dive deep and learned a lot from it. The most impressive insight for me was the elegant solution to the "async drop" problem: there is always a coroutine dispatcher responsible for each task, and that dispatcher guarantees that the task will run to completion in every scenario, which means, together with the Java-style exception-based error handling and "drop" implementations being put in Thank you for letting me dive deep into your framework and the clear corrections along the way. I hope my contributions will bring you some utility. For now, though, my async research time budget is depleted, and as the perfect is the enemy of the good, I'd like to move on to other problems. However, if you want me to, I am ready to implement those corrections to my PRs that are mostly mechanical and don't require deeper dives into the code on my part, as I think it would be rude to just leave you with a pile of text that you maybe do not like. |
Describe the bug
kotlinx-datetime
was given new and updated documentation...kotlinx-corotoutines
could also benefit from the same treatment.Provide a Reproducer
Going through the list from
kotlinx-datetime
(Kotlin/kotlinx-datetime#347):whether it follows ISO-8601, how the entity can be acquired,and what time scale it comes from. ExampleInstant <-> Java InstantCoroutineDispatcher <-> Java Executor conversion)The text was updated successfully, but these errors were encountered: