-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsleep.snippet
More file actions
29 lines (29 loc) · 1021 Bytes
/
sleep.snippet
File metadata and controls
29 lines (29 loc) · 1021 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<?xml version="1.0" encoding="utf-8"?>
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2010/CodeSnippet">
<CodeSnippet Format="1.0.0">
<Header>
<Title>スレッドの中断</Title>
<Description>指定した時間だけ現在のスレッドを中断します。</Description>
<SnippetTypes>
<SnippetType>Expansion</SnippetType>
</SnippetTypes>
<Shortcut>sleep</Shortcut>
</Header>
<Snippet>
<Declarations>
<Literal Editable="false">
<ID>thread</ID>
<Function>SimpleTypeName(global::System.Threading.Thread)</Function>
</Literal>
<Literal>
<ID>time</ID>
<ToolTip>スレッドがブロックされるミリ秒数</ToolTip>
<Default>1000</Default>
</Literal>
</Declarations>
<Code Language="csharp" Kind="method body">
<![CDATA[$thread$.Sleep($time$);]]>
</Code>
</Snippet>
</CodeSnippet>
</CodeSnippets>