mirror of
https://github.com/vlang/v.git
synced 2025-09-15 15:32:27 +03:00
coroutines: init() that runs automatically
This commit is contained in:
parent
80d404c220
commit
786865d349
2 changed files with 16 additions and 14 deletions
|
@ -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()
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue