Skip to content

Commit 7c9b896

Browse files
Adding note about creating predictors that there needs to be a 20ms time out (#10263)
* adding note about 20ms time out * Update create-cmdline-predictor.md editorial changes * Update create-cmdline-predictor.md --------- Co-authored-by: Sean Wheeler <[email protected]>
1 parent f411e49 commit 7c9b896

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

reference/docs-conceptual/dev-cross-plat/create-cmdline-predictor.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,11 @@ Create a new PowerShell module project by following these steps:
210210
1. Run `dotnet build` to produce the assembly. You can find the compiled assembly in the
211211
`bin/Debug/net6.0` location of your project folder.
212212

213+
> [!NOTE]
214+
> To ensure a responsive user experience, the ICommandPredictor interface has a 20ms time out
215+
> for responses from the Predictors. Your predictor code must return results in less than 20ms
216+
> to be displayed.
217+
213218
## Using your predictor plugin
214219

215220
To try out your new predictor, open a new PowerShell 7.2 session and run the following commands:

0 commit comments

Comments
 (0)