Skip to content

Latest commit

 

History

History
23 lines (18 loc) · 570 Bytes

File metadata and controls

23 lines (18 loc) · 570 Bytes
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

Related patterns

  • Balking