current_suspension/1 nondeterministically enumerates all current suspensions. They may be either sleeping or already scheduled for execution. It does not return any dead suspensions.
Note: Please do not use this predicate if you need all suspensions. Use suspensions/1 instead.
[eclipse 3]: suspend(writeln(a),3,X->inst), suspend(writeln(b),5,Y->inst), current_suspension(S). X = X Y = Y S = 'GOAL'(writeln(b), eclipse) Delayed goals: writeln(a) writeln(b) More? (;) X = X Y = Y S = 'GOAL'(writeln(a), eclipse) Delayed goals: writeln(a) writeln(b) More? (;) no (more) solution.