Task

completed/1

completed(value)

Returns a %Task{} that is already completed with the given value, without spawning any process. Awaiting it returns value immediately.