rust: proc() syntax obsolete, thread not in prelude

This commit is contained in:
Ches Martin 2015-03-01 18:01:55 -05:00
parent 16211fe728
commit 928eb95c72

View File

@ -161,8 +161,12 @@ snippet ss "static string declaration"
snippet stat "static item declaration"
static ${1}: ${2:usize} = ${0};
# Concurrency
snippet spawn "spawn a task or thread"
spawn(proc() {
snippet scoped "spawn a scoped thread"
thread::scoped(${1:move }|| {
${0}
});
snippet spawn "spawn a thread"
thread::spawn(${1:move }|| {
${0}
});
snippet chan "Declare (Sender, Receiver) pair of asynchronous channel()"