-/** Execute the code in the kernel at some time
- *
- * @param date when we should execute the code
- * @param code code to execute
- * @return future with the result of the call
- */
-template<class F>
-auto kernel_defer(double date, F code) -> simgrid::kernel::Future<decltype(code())>
+/** Create a future which becomes ready when the date is reached */
+static
+simgrid::kernel::Future<void> kernel_wait_until(double date)