1

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?

James Ikeler
  • 111
  • 9
  • I have answered this question [here](https://stackoverflow.com/questions/41898944/how-to-use-timer-in-vapor-server-side-swift/55539678#55539678) with a code snippet – Kerusan Apr 05 '19 at 16:24

1 Answers1

0

The 'best' way to do it would be to call directly down to NIO - see their documentation here

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.

0xTim
  • 5,146
  • 11
  • 23