Skip to content

Close returns error

Compare
Choose a tag to compare
@pkedy pkedy released this 17 May 12:52
· 26 commits to master since this release
31aa7a4
Makes Close return error and fixes some safety issues (#28)

* Makes Close return error and fixes some safety issues

This makes Close more safe in the non-wazero impls by using atomic
instead of field check to see if a function should proceed.

This also makes "error ignoring" a decision of the caller of `Close` vs
an implicit decision inside an implementation.

Signed-off-by: Adrian Cole <[email protected]>

* uses 2.0 flag from #27

Signed-off-by: Adrian Cole <[email protected]>

* much better

Signed-off-by: Adrian Cole <[email protected]>

* fixes README

Signed-off-by: Adrian Cole <[email protected]>

* bump

Signed-off-by: Adrian Cole <[email protected]>