Skip to content

Conversation

@Avanatiker
Copy link
Member

Semmantics

Changed

listener<TickEvent.Pre> { }
listenOnce<TickEvent.Pre> {}
concurrentListener<TickEvent.Pre> { }
unsafeListener<TickEvent.Pre> {}

to

listen<TickEvent.Pre> { }
listenOnce<TickEvent.Pre> {}
listenConcurrently<TickEvent.Pre> { }
listenUnsafe<TickEvent.Pre> {}

as its more naturally readable.

Scheduling

Now you can pass the scheduling dispatcher to the concurrent listener:

listenConcurrently<Data.Safe>(Dispatchers.IO) { }

@Avanatiker Avanatiker changed the title Refactor listener registrations listener -> listen Listener semmantics and dynamic scheduling Dec 6, 2024
@github-actions github-actions bot added the triage Requires labelling or review label Dec 6, 2024
@Avanatiker Avanatiker merged commit b4ff344 into master Dec 7, 2024
2 checks passed
@emyfops emyfops deleted the refactor/listener branch December 21, 2024 18:13
@emyfops emyfops added ignore-for-release Don't include this label in the release changelog and removed triage Requires labelling or review labels Dec 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ignore-for-release Don't include this label in the release changelog refactor

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants