hxn

RemoteBackend

URI I/O used by the asset package's remote source and streams.

Constructor

function new(uri:String, options:String)

Static methods

function hxnAdopt(hxnRaw:Handle):RemoteBackend

An object for a value the library returned.

Properties

var hxnRaw:Handle

Methods

function read():Future<Bytes>
function cancel():Void
function same(other:Null<RemoteBackend>):Bool

Whether other holds the value this does. Two objects can: each time the library returns the value, a new object gets a share of it.

function weak():RemoteBackendWeak

A reference to the value that does not keep it alive.

function close():Void

Gives up this object's share of the value now. The collector does it otherwise. The value lives while anything else holds a share. Using this object afterwards throws.