mirror of
https://github.com/hs-web/hsweb-framework.git
synced 2026-06-02 19:02:44 +08:00
fix: 修复通过EntityPrepareModifyEvent重新设置可能无效问题 (#288)
* fix: 修复通过EntityPrepareModifyEvent重新设置可能无效问题 * fix: 修复无法设置null问题
This commit is contained in:
@@ -25,12 +25,14 @@ public class DefaultAsyncEvent implements AsyncEvent {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void transformFirst(Function<Mono<?>, Publisher<?>> mapper) {
|
||||
public synchronized void transformFirst(Function<Mono<?>, Publisher<?>> mapper) {
|
||||
hasListener = true;
|
||||
this.first = Mono.fromDirect(mapper.apply(this.first));
|
||||
}
|
||||
|
||||
@Override
|
||||
public void transform(Function<Mono<?>, Publisher<?>> mapper) {
|
||||
public synchronized void transform(Function<Mono<?>, Publisher<?>> mapper) {
|
||||
hasListener = true;
|
||||
this.async = Mono.fromDirect(mapper.apply(this.async));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user