Skip to content

Commit

Permalink
LiEventBus增加自定义push
Browse files Browse the repository at this point in the history
  • Loading branch information
leaderli committed Oct 17, 2024
1 parent d6fa68f commit 4152ffb
Showing 1 changed file with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,19 @@ public <E extends LiEventObject<S>, S> void push(E event) {
push(event, DEFAULT);
}

/**
* 推送事件。
*
* @param event 推送的事件
* @param sl 提供源数据和监听器的执行过程函数,默认函数 {@link #DEFAULT}
* @param <S> 推送的事件的数据类型
* @param <E> 推送的事件的类型
* @see ILiEventListener
* @see ILiEventListener#before(Object)
* @see ILiEventListener#listen(Object)
* @see ILiEventListener#onError(Throwable)
* @see ILiEventListener#after(LiEventBusBehavior)
*/
public <E extends LiEventObject<S>, S> void push(E event, BiConsumer<SourceProvider<S>, ILiEventListener<E, S>> sl) {

if (event == null) {
Expand Down

0 comments on commit 4152ffb

Please sign in to comment.