
:- ensure_loaded(schedule).

go:-
	forall( between(1,10,X),
		schedule_in(X, (write(X), nl), _)),
	scheduled_goal_caller.


go2:-
	
		get_time(Now),
	Time is Now + 1,
	schedule_at(Time, (write(x),nl), x),
	schedule_at(Time, (write(x),nl), x),
	schedule_at(Time, (write(x),nl), x),
	scheduled_goal_caller.

