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

feat: create kotlin extensions module #24

Merged
merged 3 commits into from
Jul 22, 2022
Merged

Conversation

iProdigy
Copy link
Member

@iProdigy iProdigy commented Jul 22, 2022

WIP: the KDoc comments are not yet copying over to the javadoc jar (πŸ€”) β€” edit: appears to be caused by Kotlin/dokka#1908

@iProdigy iProdigy added the enhancement New feature or request label Jul 22, 2022
/**
* @see CacheApi.create
*/
fun <K, V> createCache(init: CacheApiSpec<K, V>.() -> Unit): Cache<K, V> = CacheApi.create(Consumer(init))
Copy link
Member Author

Choose a reason for hiding this comment

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

aside: I'd like this extension to be statically defined on CacheApi itself, but am blocked by https://youtrack.jetbrains.com/issue/KT-11968

@iProdigy iProdigy enabled auto-merge (squash) July 22, 2022 16:21
@iProdigy iProdigy merged commit 0ad26fd into main Jul 22, 2022
@PhilippHeuer PhilippHeuer deleted the feature/kotlin-extensions branch July 22, 2022 18:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants