Skip to content

Enable async object decoding #14

@TekExplorer

Description

@TekExplorer

In order to enable chunked decoding, such as for #12, we need to have an async object decoding option for Decodables

All Decodable's are AsyncDecodable, as you can always await a sync value, but not all AsyncDecodables are (sync)Decodable

We would likely need to add async variants to Decoder for Future<T> decodeObjectAsync<T>({AsyncDecodable? using})'s use

Then, specific Decodable's such as ListCodable can implement the async version as desired, while the Decoder can act with respect to Stream

We could possibly keep everything on Decoder so that people could choose to store futures/streams in their models if desired, or keep it separate with a AsyncDecoder

see this comment for a bit more context: #12 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions