le(daysOfweek = DayOfWeek.WEDNESDAY, hours = 10, minutes = 30)
 })
 public CompletableFuture&lt;String&gt; attendLectureAndLab(String course) {
     ...
     if (endOfSemester)
         return Asynchronous.Result.complete(courseRecord);
     else
         return null; // continue at next scheduled time
 }

 ...

 student.attendLectureAndLab(courseName).thenApply(this::assignGrade);
 </pre>

 <p>The default value of empty array indicates that the task does not
 run on a schedule and instead runs one time.</p