java-design-patterns/guarded-suspension
Subhrodip Mohanta 656b441e29
maintenance: Update Spacing of XML (#1864)
PR Set 2 of 4
2021-10-19 20:51:43 +03:00
..
2019-12-07 18:03:49 +02:00

layout, title, folder, permalink, categories, language, tags
layout title folder permalink categories language tags
pattern Guarded Suspension guarded-suspension /patterns/guarded-suspension/ Concurrency en
Decoupling

Intent

Use Guarded suspension pattern to handle a situation when you want to execute a method on object which is not in a proper state.

Class diagram

Guarded Suspension diagram

Applicability

Use Guarded Suspension pattern when the developer knows that the method execution will be blocked for a finite period of time

  • Balking