-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
21 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# Cages | ||
|
||
Cages are a way to manage global states in an non-global maner. | ||
|
||
|
||
## Usage | ||
|
||
There are two methods | ||
|
||
1. registering via self registering (recommended) | ||
2. registering manually | ||
|
||
The first way is recommended because it can be detected if it would nest another Cage object. | ||
In this case it would just skip the initialization and the old Cage is kept. | ||
|
||
Advantage of this: multiple libraries can patch other libraries without fearing to overwrite another cage. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters