-
Notifications
You must be signed in to change notification settings - Fork 8.2k
Start-Sleep cmdlet is misnamed; should be Invoke-Sleep #3990
Copy link
Copy link
Closed
Labels
Issue-Discussionthe issue may not have a clear classification yet. The issue may generate an RFC or may be reclassifthe issue may not have a clear classification yet. The issue may generate an RFC or may be reclassifResolution-AnsweredThe question is answered.The question is answered.WG-Cmdlets-Utilitycmdlets in the Microsoft.PowerShell.Utility modulecmdlets in the Microsoft.PowerShell.Utility module
Description
https://technet.microsoft.com/en-us/library/ms714428(v=vs.85).aspx states (emphasis added):
The Invoke verb is used to perform an operation that is generally a synchronous operation, such as running a command. The Start verb is used to begin an operation that is generally an asynchronous operation, such as starting a process.
Therefore, Start-Sleep, which is synchronous, should be called Invoke-Sleep.
It's probably too late to change this, but:
-
perhaps an
Invoke-Sleepalias could be defined. -
either way, the inconsistency should be documented.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Issue-Discussionthe issue may not have a clear classification yet. The issue may generate an RFC or may be reclassifthe issue may not have a clear classification yet. The issue may generate an RFC or may be reclassifResolution-AnsweredThe question is answered.The question is answered.WG-Cmdlets-Utilitycmdlets in the Microsoft.PowerShell.Utility modulecmdlets in the Microsoft.PowerShell.Utility module