View Source Rephex.AsyncAction.Backend (rephex v0.1.1)

Summary

Functions

YourAction.cancel(socket, ...) call this.

LiveView.handle_async(..., result, socket) call this.

YourAction.start(socket, ...) call this.

LiveView.handle_info(..., socket) call this.

Types

@type loading() :: {any(), %{last_update_time: integer() | nil}}

Functions

Link to this function

cancel(socket, async_key, reason)

View Source

YourAction.cancel(socket, ...) call this.

Link to this function

resolve(socket, async_key, result)

View Source

LiveView.handle_async(..., result, socket) call this.

Link to this function

start(socket, async_key, payload, opts)

View Source

YourAction.start(socket, ...) call this.

Link to this function

update_progress(socket, async_key, progress)

View Source

LiveView.handle_info(..., socket) call this.