Created
February 15, 2017 13:05
-
-
Save Marenz/d8e2b0991ca24f125d10e3a2114d96f2 to your computer and use it in GitHub Desktop.
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
// C'tor, sets up timer to refresh settings periodically | |
this ( MatchmakingManager _mm ) | |
out | |
{ | |
assert(this.mm !is null); // fails | |
} | |
body | |
{ | |
assert(_mm !is null); // succeeds | |
this.mm == _mm; | |
import vibe.core.core : setTimer; | |
import core.time : Duration, time_t, seconds; | |
setTimer(this.SettingsRefresh.seconds, &this.refreshAvailableSettings, true); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment