mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
coroutines: init() that runs automatically
This commit is contained in:
@ -20,7 +20,6 @@ pub fn sleep(duration time.Duration) {
|
||||
C.photon_sleep_ms(duration.milliseconds())
|
||||
}
|
||||
|
||||
// init needs to be run
|
||||
pub fn initialize() int {
|
||||
return C.photon_init_default()
|
||||
fn init() {
|
||||
C.photon_init_default()
|
||||
}
|
||||
|
Reference in New Issue
Block a user