Skip to content

Add a generic file watcher function in HelpersCommon.psm1 #4524

Closed

Description

See #4523 (comment)

Polling for a file can be a common pattern. Consider implementing a generic file watcher function in HelpersCommon.psm1.

while (((Get-Date) - $startTime).TotalSeconds -lt 10 -and (-not (Test-Path "$HOME/nativeCommandProcessor.Success"))) {
    Start-Sleep -Milliseconds 100
}

Activity

  1. added
    WG-Quality-Test
    Issue-Enhancement
    on Aug 8, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Issue-EnhancementResolution-FixedWG-Quality-Test

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions