Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Computed vars do not write to invocation array in a threadsafe way #333

Open
welshm opened this issue Dec 20, 2022 · 0 comments · May be fixed by #334
Open

Computed vars do not write to invocation array in a threadsafe way #333

welshm opened this issue Dec 20, 2022 · 0 comments · May be fixed by #334

Comments

@welshm
Copy link

welshm commented Dec 20, 2022

    public var currentDate: Date {
		get {	invocations.append(.p_currentDate_get); return __p_currentDate ?? givenGetterValue(.p_currentDate_get, "CurrentDateProviderMock - stub value for currentDate was not defined") }
	}

whereas functions do

    open func cancelTrigger() {
        addInvocation(.m_cancelTrigger)
		let perform = methodPerformValue(.m_cancelTrigger) as? () -> Void
		perform?()
    }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant