All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.extism.sdk.CancelHandle Maven / Gradle / Ivy

There is a newer version: 1.1.0
Show newest version
package org.extism.sdk;

import com.sun.jna.Pointer;

/**
 * CancelHandle is used to cancel a running Plugin
 */
public class CancelHandle {
    private Pointer handle;

    public CancelHandle(Pointer handle) {
        this.handle = handle;
    }

    /**
     * Cancel execution of the Plugin associated with the CancelHandle
     */
    boolean cancel() {
        return LibExtism.INSTANCE.extism_plugin_cancel(this.handle);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy