wapc / wapc-go

Golang-based WebAssembly Host Runtime for waPC-compliant modules
Apache License 2.0
91 stars 25 forks source link

Bump engine versions and add pool instance initializer #42

Closed pkedy closed 2 years ago

pkedy commented 2 years ago

This PR:

pool, err := wapc.NewPool(ctx, module, 10, func(instance wapc.Instance) error {
    // Do something to initialize this instance before use.
    return nil
})

/cc: @codefromthecrypt

jsoverson commented 2 years ago

LGTM

codefromthecrypt commented 2 years ago

neat!