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

add fun keyword to all Listener interfaces to allow SAM constructors #33

Merged
merged 2 commits into from
May 3, 2023

Conversation

sed0
Copy link
Contributor

@sed0 sed0 commented May 2, 2023

#29

@atsushieno
Copy link
Owner

atsushieno commented May 2, 2023

Cool, thanks! I have some comments, writing inline. -> done

@@ -252,7 +252,7 @@ enum class PlayerState {
PAUSED,
}

interface SeekProcessor<TMessage> {
fun interface SeekProcessor<TMessage> {
Copy link
Owner

@atsushieno atsushieno May 2, 2023

Choose a reason for hiding this comment

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

At this state I don't plan to make this interface as a SAM (it would be a breaking change if I add anything further, unless it becomes a @ JvmDefault method though), unless there is any strong reason to make it SAM.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure, I'll remove it! I just added it everywhere I could haha

@sed0 sed0 requested a review from atsushieno May 2, 2023 12:38
@atsushieno atsushieno merged commit c529e2b into atsushieno:main May 3, 2023
@atsushieno
Copy link
Owner

Thanks!

@sed0 sed0 deleted the kotlin-SAM-constructors branch May 24, 2023 12:48
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.

None yet

2 participants