Subscription

data class Subscription(val userdata: Userdata, val u: SubscriptionU)(source)

WASI Preview1 type $subscription

Subscription to an event.

Parameters

userdata

User-provided value that is attached to the subscription in the implementation and returned through event::userdata.

u

The type of the event to which to subscribe, and its contents

Definition:

(typename $subscription
(record
;;; User-provided value that is attached to the subscription in the
;;; implementation and returned through `event::userdata`.
(field $userdata $userdata)
;;; The type of the event to which to subscribe, and its contents
(field $u $subscription_u)
)
)

Constructors

Link copied to clipboard
constructor(userdata: Userdata, u: SubscriptionU)

Properties

Link copied to clipboard
Link copied to clipboard