Skip to content

Conversation

@grdsdev
Copy link
Contributor

@grdsdev grdsdev commented Jun 4, 2024

What kind of change does this PR introduce?

Make RealtimeChannelV2 and RealtimeClientV2 classes instead of actor, and add protect mutable state using a LockIsolated.

This makes the call side to not require to be on an async context.

- let channel = await client.channel("messages")
+ let channel = client.channel("messages")

Note this is not a breaking change, the compiler would only emit a warning stating that the await isn't required.

@grdsdev grdsdev force-pushed the refactor/realtime/drop-actor branch from 578fbe7 to 3b2bd9a Compare June 7, 2024 11:44
@grdsdev grdsdev marked this pull request as ready for review June 7, 2024 13:26
@grdsdev grdsdev requested a review from dshukertjr June 7, 2024 13:27
@grdsdev grdsdev enabled auto-merge (squash) June 7, 2024 13:30
@grdsdev grdsdev merged commit 2acc50c into main Jun 8, 2024
@grdsdev grdsdev deleted the refactor/realtime/drop-actor branch June 8, 2024 03:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants