1
0
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:
Alexander Medvednikov
2023-05-28 15:54:57 +02:00
parent 80d404c220
commit 786865d349
2 changed files with 16 additions and 14 deletions

View File

@ -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()
}