21 lines
484 B
Markdown
21 lines
484 B
Markdown
---
|
|
title: Guarded Suspension
|
|
category: Concurrency
|
|
language: en
|
|
tags:
|
|
- 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
|
|

|
|
|
|
## 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
|