MCPcopy Create free account
hub / github.com/Vector35/binaryninja-api / update_analysis_and_wait

Method update_analysis_and_wait

python/binaryview.py:4928–4948  ·  view source on GitHub ↗

``update_analysis_and_wait`` starts the analysis process and blocks until it is complete. This method should be used when it is necessary to ensure that analysis results are fully updated before proceeding with further operations. If an update is already in progress, this method chains a new

(self)

Source from the content-addressed store, hash-verified

4926 core.BNUpdateAnalysis(self.handle)
4927
4928 def update_analysis_and_wait(self) -> None:
4929 """
4930 ``update_analysis_and_wait`` starts the analysis process and blocks until it is complete. This method should be
4931 used when it is necessary to ensure that analysis results are fully updated before proceeding with further operations.
4932 If an update is already in progress, this method chains a new update request to ensure that the update processes
4933 all pending changes before the call was made.
4934
4935 **Usage**:
4936 Call ``update_analysis_and_wait`` after making changes that could affect the analysis results, such as adding or modifying
4937 functions, to ensure that the analysis reflects the latest changes. Unlike ``update_analysis``, this method waits for the
4938 analysis to finish before returning.
4939
4940 **Thread Restrictions**:
4941 - **Worker Threads**: This function cannot be called from a worker thread. If called from a worker thread, an error will be
4942 logged, and the function will return immediately.
4943 - **UI Threads**: This function cannot be called from a UI thread. If called from a UI thread, an error will be logged, and
4944 the function will return immediately.
4945
4946 :rtype: None
4947 """
4948 core.BNUpdateAnalysisAndWait(self.handle)
4949
4950 def abort_analysis(self) -> None:
4951 """

Callers 4

nameMethod · 0.45
typeMethod · 0.45
runMethod · 0.45
pe_stat.pyFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected