suspension/1 returns a list of all currently live suspensions. They may be either sleeping or already scheduled for execution. It does not return any dead suspensions.
Note: If you are looking for one particular suspension, consider using current_suspension/1 instead.
[eclipse 6]: suspend(writeln(a),3,X->inst),
suspend(writeln(b),5,Y->inst),
suspensions(S).
X = X
Y = Y
S = ['SUSP-_358-susp', 'SUSP-_376-susp']
Delayed goals:
writeln(a)
writeln(b)
yes.