maru-zhang / swiftyeventbus Goto Github PK
View Code? Open in Web Editor NEW🚌 SwiftyEventBus is a publish/subscribe event bus for iOS and Swift.
License: MIT License
🚌 SwiftyEventBus is a publish/subscribe event bus for iOS and Swift.
License: MIT License
swift新手,不是太了解为啥只给了注册方法
难道开发者不需要关心注销回收吗
public func register<T>(on mode: DispatchMode = .same, priority: EventBusPriority = .`default`, messageEvent: @escaping (T) -> Void) -> EventSubscription<T> {
return middleWare.register(on: mode, priority: priority, messageEvent: messageEvent)
}
是将NSNotificationName以及传递的数据都交给了messageEvent了吗? 是通过messageEvent来判断来自不同的事件吗?
你好,看到源码是支持sticky消息的,使用的时候怎么设置呢?感觉没暴露出来。
the dependencies on
Nimble
Quick
RxSwift
Are exposed in the Podfile, but no Cartfile exists to express the dependencies
Please add a Cartfile so that I can use without having to manually compile.
when post a event that no subscriber, then throw a exception
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.