Skip to content

Commit

Permalink
[concurrency] make some types conform to Sendable
Browse files Browse the repository at this point in the history
  • Loading branch information
honghaoz committed Aug 26, 2024
1 parent 13aebea commit c602e4e
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Sources/ChouTiUI/Universal/Layout/Edge.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import AppKit
#endif

/// A type indicates one edge of a rectangle.
public enum Edge {
public enum Edge: Sendable {

case top
case left
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import Foundation

/// The alignment of a subcomponent relative to its parent.
public enum LayoutAlignment: Hashable {
public enum LayoutAlignment: Hashable, Sendable {

case center
case left
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import Foundation

/// The horizontal alignment of a subcomponent relative to its parent.
public enum LayoutHorizontalAlignment: Hashable {
public enum LayoutHorizontalAlignment: Hashable, Sendable {
case center
case left
case right
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import Foundation

/// The vertical alignment of a subcomponent relative to its parent.
public enum LayoutVerticalAlignment: Hashable {
public enum LayoutVerticalAlignment: Hashable, Sendable {
case center
case top
case bottom
Expand Down

0 comments on commit c602e4e

Please sign in to comment.