Skip to content

Is there ReadSignal<T, SyncStorage> in 0.7 #4604

@clouds56

Description

@clouds56

Feature Request

I'm migrating my code to 0.7-rc.0, encountering this compiling error

pub type Runtime = ReadOnlySignal<RuntimeImpl, SyncStorage>;

I found the new ReadSignal only supports UnsyncStorage, is it possible to have a Sync ReadSignal?

IIRC, use a signal Read and Write simultaneously might be dangerous (panic?), so it is sensible to have a SyncSignal read-only.

Implement Suggestion

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions