X Tutup
Skip to content

Update borg pattern to reflect discussion in issue#3#338

Merged
faif merged 1 commit intofaif:masterfrom
modasserbillah:update-borg
Jul 5, 2020
Merged

Update borg pattern to reflect discussion in issue#3#338
faif merged 1 commit intofaif:masterfrom
modasserbillah:update-borg

Conversation

@modasserbillah
Copy link
Copy Markdown
Contributor

Problem

The Borg pattern should not change state on new instance creation unless explicitly changed. Currently all new instances change the state to Init.

Solution

Update the pattern to reflect how it should behave. The Borg class should be subclassed and used. State should only change if explicitly changed.

Updated the docstring slightly to reflect the update.

Reference

Related Issue

@faif faif merged commit fffc37f into faif:master Jul 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

X Tutup