StackOverflow Questions for Tag: closures

MatthewJ
MatthewJ

Reputation: 3187

Example of a circular reference in Javascript?

Score: 61

Views: 53220

Answers: 9

Read More
Daniele B
Daniele B

Reputation: 20442

Swift 6 error: non-sendable type 'Timer' in a `@Sendable` closure

Score: 1

Views: 282

Answers: 2

Read More
bliako
bliako

Reputation: 1133

Get the BuildContext from within a callback function at the place it is called

Score: 1

Views: 60

Answers: 2

Read More
goose_lake
goose_lake

Reputation: 1480

Why does Rust consider an owning closure to exist for 'static lifetime?

Score: 0

Views: 80

Answers: 1

Read More
Franciscuzzo
Franciscuzzo

Reputation: 1

Supabase integration with swift. Issue with "Extra trailing closure passed in call" error message

Score: 0

Views: 64

Answers: 0

Read More
Boon
Boon

Reputation: 41510

Can you have a closure that has both capture list and parameter list?

Score: 2

Views: 928

Answers: 1

Read More
Benjamin
Benjamin

Reputation: 66

@Output in child component is undefined when trying to emit Angular v17

Score: 1

Views: 52

Answers: 1

Read More
Hudi Ilfeld
Hudi Ilfeld

Reputation: 2055

How to apply [weak self] to a swift function (not closure)

Score: 1

Views: 734

Answers: 3

Read More
Nikita
Nikita

Reputation: 13

How to create a macro in Swift that doesn’t return a value but simply substitutes code for execution?

Score: 1

Views: 134

Answers: 1

Read More
Ser Pounce
Ser Pounce

Reputation: 14571

What is the correct syntax for implementing a closure that allows the user to insert additional views?

Score: 0

Views: 47

Answers: 1

Read More
Calamity Jane
Calamity Jane

Reputation: 2686

How to return different values from mock object depending on parameter

Score: 0

Views: 171

Answers: 1

Read More
ofmiceandmoon
ofmiceandmoon

Reputation: 596

What does 'return $next($request)' do in Laravel middleware?

Score: 13

Views: 14254

Answers: 2

Read More
zarochintsev
zarochintsev

Reputation: 33

How to implement function like onAppear in SwiftUI?

Score: 3

Views: 2039

Answers: 2

Read More
tuxSlayer
tuxSlayer

Reputation: 2824

Why scalac generates additional/wrapping closures

Score: 3

Views: 103

Answers: 1

Read More
ais523
ais523

Reputation: 998

Why do I need an apparently useless type annotation when a closure matches against an enum-with-lifetime argument?

Score: 5

Views: 96

Answers: 0

Read More
azyx
azyx

Reputation: 69

how to define a global closure/functor and pass to a function that determine if it's the predefined in Rust?

Score: 1

Views: 40

Answers: 1

Read More
sanitizedUser
sanitizedUser

Reputation: 2115

Why can't I move a closure represented by a trait?

Score: 1

Views: 58

Answers: 1

Read More
Dwza
Dwza

Reputation: 6565

Merge two 2d arrays and remove duplicate rows

Score: 0

Views: 354

Answers: 5

Read More
user27985042
user27985042

Reputation: 1

Stale closure in react but I cannot see why

Score: 0

Views: 40

Answers: 1

Read More
Bashir Abdelwahed
Bashir Abdelwahed

Reputation: 512

rust closures definition inside a for loop

Score: 2

Views: 863

Answers: 1

Read More
PreviousPage 3Next