1
0
Fork 0
mirror of https://github.com/diamondburned/arikawa.git synced 2024-11-05 06:26:08 +00:00
arikawa/session
diamondburned 258b6149d7
session: Add Connect and Wait
This commit adds the Connect and Wait methods into session. This gives
the user a way to block the program until the session runs into an error
or the given ctx is done.

In most cases, Connect is useful when combined with
signal.NotifyContext, and so Connect is preferred over Open.
2022-08-14 16:11:40 -07:00
..
shard shard: Fix fmt 2022-08-14 16:11:40 -07:00
session.go session: Add Connect and Wait 2022-08-14 16:11:40 -07:00
session_test.go session: Add Connect and Wait 2022-08-14 16:11:40 -07:00