The new Vapor has come with new upgrades, meaning many imports don't work with the new software.For example, Jobs, a minimalistic job system in Swift worked perfectly for older version of Vapor but not newer, is there any alternative to create Timers as regular timers don't work for server side Swift?
新的Vapor已经进行了新的升级,这意味着许多进口产品无法与新软件配合使用。例如,Swift中的简约工作系统Jobs适用于较旧版本的Vapor而不是更新版本,是否可以选择创建Timers因为常规计时器不适用于服务器端Swift?
1 个解决方案
#1
0
The 'best' way to do it would be to call directly down to NIO - see their documentation here
“最好”的方法是直接打电话给NIO - 在这里查看他们的文档
Note that there's nothing wrong with using Jobs in Vapor 3. It just doesn't fit as well with the updated Thread model, but it should still all work.
请注意,在Vapor 3中使用Jobs没有任何问题。它只是不适合更新的Thread模型,但它仍然可以正常工作。
#1
0
The 'best' way to do it would be to call directly down to NIO - see their documentation here
“最好”的方法是直接打电话给NIO - 在这里查看他们的文档
Note that there's nothing wrong with using Jobs in Vapor 3. It just doesn't fit as well with the updated Thread model, but it should still all work.
请注意,在Vapor 3中使用Jobs没有任何问题。它只是不适合更新的Thread模型,但它仍然可以正常工作。