Suspends goal Goal which will be triggered when the event Event is
raised.
+Event Atom +Goal Prolog term
Description
Creates a suspended goal which is then triggered (woken) when the event
Event is raised. This predicate is provided as a convienence so that the
user does not have to write the code for associating a goal with an
event. It can be used with an after event so that the goal will be
executed when the after event is raised. This predicate has to be
imported to be used.