mirror of
https://github.com/vlang/v.git
synced 2025-09-13 14:32:26 +03:00
all: updateimport ()
and []array
This commit is contained in:
parent
7b39ab6d06
commit
9f4d498ff1
59 changed files with 181 additions and 254 deletions
|
@ -1,6 +1,4 @@
|
|||
import (
|
||||
eventbus
|
||||
)
|
||||
import eventbus
|
||||
|
||||
struct EventData {
|
||||
data string
|
||||
|
@ -10,7 +8,7 @@ fn test_eventbus(){
|
|||
ev_data := &EventData{'hello'}
|
||||
mut eb := eventbus.new()
|
||||
eb.subscriber.subscribe_once("on_test", on_test)
|
||||
|
||||
|
||||
assert eb.has_subscriber("on_test")
|
||||
assert eb.subscriber.is_subscribed("on_test")
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue