d
This commit is contained in:
16
Modules/MeetupIdX/src/MeetupId.SectionBus.swift
Normal file
16
Modules/MeetupIdX/src/MeetupId.SectionBus.swift
Normal file
@@ -0,0 +1,16 @@
|
||||
extension MeetupId {
|
||||
enum SectionBus {
|
||||
static func setupService(
|
||||
_ ctrl: Controller,
|
||||
_ service: Service,
|
||||
_ world: World
|
||||
) {
|
||||
service.any.append(contentsOf: [
|
||||
Bus.Debounce(shouldResetText, 0.2, K.M, K.textApp),
|
||||
Bus.Delay(shouldFinishLoading, 5, K.M, K.finishLoading),
|
||||
Bus.Sync(shouldEnableJoin, K.M, K.isJoinAvailable),
|
||||
Bus.Sync(shouldResetLoading, K.M, K.isLoading)
|
||||
])
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user