* Moves game-loop to Java 11 * Moves guarded-suspension to Java 11 * Moves half-sync-half-async to Java 11 * Moves hexagonal to Java 11 * Moves intercepting-filter to Java 11 * Moves interpreter to Java 11 * Moves iterator to Java 11
layout, title, folder, permalink, categories, tags
layout | title | folder | permalink | categories | tags | |
---|---|---|---|---|---|---|
pattern | Guarded Suspension | guarded-suspension | /patterns/guarded-suspension/ | Concurrency |
|
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