Skip to content

sync() function default value #40

Closed
@sakchal

Description

@sakchal

The sync function is supposed to take a default device_id value of -1 according to the docs, but I'm forced to pass in an argument when calling the function. I made a PR for a potential fix.

def sync(device_id: int, /) -> None:
    """
    Blocks until all operations on device are finished.

    Parameters
    ----------
    device_id: int
        Id of the target device.
    """
    call_from_clib(sync.__name__, `device_id)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions