Skip to content

Commit cf7f87e

Browse files
committed
Create a migration guide.
1 parent 93e7ffa commit cf7f87e

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
title: AssetSources now give an `async_channel::Sender` instead of a `crossbeam_channel::Sender`
3+
pull_requests: []
4+
---
5+
6+
Previously, when creating an asset source, `AssetSourceBuilder::with_watcher` would provide users
7+
with a `crossbeam_channel::Sender`. Now, this has been changed to `async_channel::Sender`.
8+
9+
If you were previously calling `sender.send(AssetSourceEvent::ModifiedAsset("hello".into()))`, now
10+
it would be `sender.send_blocking(AssetSourceEvent::ModifiedAsset("hello".into()))`. These channels
11+
are very comparable, so finding an analogous method between `crossbeam_channel` and `async_channel`
12+
should be straight forward.

0 commit comments

Comments
 (0)