AsyncKt

public final class AsyncKt
public final class AsyncKt

Functions

Link copied to clipboard
public final static C callback<C extends Callback>(Advisable<? super C> $self)
public final static C callback<C extends Callback>(Advisable<? super C> $self)

Returns the currently registered callback of type C, if any.

Link copied to clipboard
public final static C register<C extends Callback>(Advisable<? super C> $self, C callback)
public final static C register<C extends Callback>(Advisable<? super C> $self, C callback)

Registers the given callback in this Advisable.

Link copied to clipboard
public final static C removeCallback<C extends Callback>(Advisable<? super C> $self)
public final static C removeCallback<C extends Callback>(Advisable<? super C> $self)

Removes a callback of type C from this Advisable, if any.

Link copied to clipboard
public final static Subscription subscribe<E extends Event>(Observable<? super E> $self, Observer<E> observer)
public final static Subscription subscribe<E extends Event>(Observable<? super E> $self, Observer<E> observer)

Subscribes the given observer to receive events of type E from this Observable.