tvl-depot/users/grfn/emacs.d/snippets/rust-mode/async test
Griffin Smith 2a97eda3b3 feat(gs/emacs): Update async test snippet for tokio 1.x
Change-Id: I897f3efae7920dee678f6ca03d743b12212b766c
Reviewed-on: https://cl.tvl.fyi/c/depot/+/3109
Reviewed-by: grfn <grfn@gws.fyi>
Tested-by: BuildkiteCI
2021-05-12 10:33:37 +00:00

10 lines
No EOL
162 B
Text

# -*- mode: snippet -*-
# name: async test
# uuid:
# key: atest
# condition: t
# --
#[tokio::test(flavor = "multi_thread")]
async fn ${1:test_name}() {
`%`$0
}