java - Akka 2.6.3 中的问题可取消
问题描述
我想将 Akka 经典代码下面的代码更改为 Akka 2.6.3,以便在新项目中使用我的调度程序。
Cancellable tickTaskFrontend = context().system().scheduler().schedule(Duration.create(5, TimeUnit.MINUTES), Duration.create(2, TimeUnit.MINUTES), self(), "CheckFrontendInit", context().dispatcher(), null);
我在 Akka 2.6.3 中没有看到任何可取消的代码。
解决方案
推荐阅读
- bash - 与 Git Bash 和激活 conda env 相关的更改
- bluetooth-lowenergy - 如何通过 Movesense 使用 BleNordicUART
- redis - redis 服务失败,附加文件的权限被拒绝
- firebase - 如何检查数组是否包含 Firestore 中的两个特定字符串?
- c# - C# WPF 在不同的域中运行应用程序副本(用于单独的 cookie)
- python - 如何通过 Google Analytics API 找到回访者的百分比
- html - 无法在渐变 div 上设置过渡,但无法在图像上设置不透明度,因为它也设置子元素不透明度
- arrays - 如何从 Reason 更新 JS 类型数组?
- sql - 如何在 Visual Studio 中设置 SQL 数据库项目中的数据库连接字符串?
- laravel - SQLSTATE [42P01]:未定义表:7 ERREUR:la relationship n'existe pas