Library Moduleordo-one.package-concurrency-helpers 4.0.3PackageConcurrencyHelpers

    PackageConcurrencyHelpers

    import PackageConcurrencyHelpers

    Module information

    Declarations
    30
    Symbols
    35

    Coverage

    70.0 percent of the declarations in PackageConcurrencyHelpers are fully documented26.7 percent of the declarations in PackageConcurrencyHelpers are indirectly documented3.3 percent of the declarations in PackageConcurrencyHelpers are completely undocumented

    Declarations

    13.3 percent of the declarations in PackageConcurrencyHelpers are global functions or variables16.7 percent of the declarations in PackageConcurrencyHelpers are initializers, type members, or enum cases40.0 percent of the declarations in PackageConcurrencyHelpers are instance members3.3 percent of the declarations in PackageConcurrencyHelpers are protocols10.0 percent of the declarations in PackageConcurrencyHelpers are protocol requirements3.3 percent of the declarations in PackageConcurrencyHelpers are structures13.3 percent of the declarations in PackageConcurrencyHelpers are classes

    Interfaces

    100.0 percent of the declarations in PackageConcurrencyHelpers are unrestricted
    Module stats and coverage details

    Uncategorized

    Protocols

    Types

    • class Lock
    • class Protected<T>

      Thread safe access to simple variable protected by lock

    • class Spinlock

      Lock to protect very short critical sections.

    • class UnsafeMutableTransferBox<Wrapped>

      UnsafeMutableTransferBox can be used to make non-Sendable values Sendable and mutable. It can be used to capture local mutable values in a @Sendable closure and mutate them from within the closure. As the name implies, the usage of this is unsafe because it disables the sendable checking of the compiler and does not add any synchronisation.

    • struct UnsafeTransfer<Wrapped>

      UnsafeTransfer can be used to make non-Sendable values Sendable. As the name implies, the usage of this is unsafe because it disables the sendable checking of the compiler. It can be used similar to @unsafe Sendable but for values instead of types.

    Globals

    Other modules