Skip to content
Snippets Groups Projects
Forked from Platform / Development / swh-model
Source project has a limited visibility.
  • Pierre-Yves David's avatar
    e54151a4
    discovery: support optional callback for information · e54151a4
    Pierre-Yves David authored
    Right now, the discovery process offered by `filter_known_objects`
    returns all results after the discovery is complete. The new callback
    provides a way to get information "in real time" which is useful for at
    least a couple of planned use case in the SWH scanner:
    - displaying progress information while processing
    - update a graphical UI in real time.
    
    This simple callback fits this need without too much troubles.
    
    For some reason, mypy complained about the existing type hint in this
    file for unclear reason. So I fixed them.
    e54151a4
    History
    discovery: support optional callback for information
    Pierre-Yves David authored
    Right now, the discovery process offered by `filter_known_objects`
    returns all results after the discovery is complete. The new callback
    provides a way to get information "in real time" which is useful for at
    least a couple of planned use case in the SWH scanner:
    - displaying progress information while processing
    - update a graphical UI in real time.
    
    This simple callback fits this need without too much troubles.
    
    For some reason, mypy complained about the existing type hint in this
    file for unclear reason. So I fixed them.