Skip to content

Instantly share code, notes, and snippets.

@Marenz
Created February 15, 2017 13:05
Show Gist options
  • Save Marenz/d8e2b0991ca24f125d10e3a2114d96f2 to your computer and use it in GitHub Desktop.
Save Marenz/d8e2b0991ca24f125d10e3a2114d96f2 to your computer and use it in GitHub Desktop.
// 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