0

在 Cordova 应用程序中,火和雾的效果是这样实现的:

@Effect({dispatch: false})
onFireAndForget$ = this.actions$
ofType(MyActionTypes.FireAndForget)
.pipe(
   tap(action => longRunningMethod(action.payload))
)

应用程序的 UI 冻结,直到“longRunningMethod”的执行完成。有没有办法在单独的线程上执行长时间运行的方法而不影响其他应用程序进程?

4

1 回答 1

0

It turned out, that problem is not in effect implementation neither in application. UI sloweness was experienced only during test Cordova app on device with inspecting it in chrome on PC. No problems, when run application normally.

于 2019-04-12T06:31:44.723 回答