I am in theaters
and in computer programs
I sometimes throw things,
and at other times help fix broken parts.
When away I might reject you,
but on election day you are sure to hear from me.
What am I?
I am in theaters
and in computer programs
I sometimes throw things,
and at other times help fix broken parts.
When away I might reject you,
but on election day you are sure to hear from me.
What am I?
Cast/Casting
I am in theaters
Casting for a role
and in computer programs
Casting/Typecasting (f.e. integer to string)
I sometimes throw things,
To cast = to throw
and at other times help fix broken parts.
Putting a broken limb in cast helps healing.
When away I might reject you,
If you don't show up at casting you might get rejected.
but in election day you are sure to hear from me.
You can cast your vote/ballot.
Edit: Answer before new lines added.
I think the answer might be
Method
I am in theaters
and in computer programs
Method - a procedure in object-oriented programming
I sometimes throw things,
In computer programming, methods can throw exceptions
and at other times help fix broken parts.
By definition, a method is a particular procedure for accomplishing or approaching something, especially a systematic or established one, this can include fixing broken items.
cast
I am in theaters
the cast
and in computer programs
cast exceptions
I sometimes throw things
cast
and at other times help fix broken parts
plaster cast
When away I might reject you
castaway
but in election day you are sure to hear from me
cast a vote
I think the answer might be
Call
I am in theaters
Casting calls for roles
and in computer programs
Calls to methods or functions
I sometimes throw things,
Programming: calls to functions can throw Exceptions (https://en.wikipedia.org/wiki/Exception_handling#Exception_handling_in_software)
and at other times help fix broken parts.
Could be a call to or from a technician
when away I might reject you
You can reject phone calls.
but in election day you are sure to hear from me.
Robocalls for candidates
Could it be
Mock
I am in theaters
Mock play
and in computer programs
Mock testing
I sometimes throw things,
Mock exceptions
but in election day you are sure to hear from me.
Mock elections
Are you:
I am in theaters
Operating theaters, although you shouldn't be
and in computer programs
as viruses
I sometimes throw things,
projectile vomiting caused by unhealthy bacteria
and at other times help fix broken parts.
benign bacteria can help the body heal, for example, yoghurt.
When away I might reject you,
a reference to chemotaxis. WPQuote: This is important for bacteria to . . . flee from poisons.
but in election day you are sure to hear from me.
irritable bowel syndrome is often caused by bacteria.
I am in theaters
Routine - actors and dancers have routines. Comedians have routines, which is an act.
and in computer programs
Routine - computers have routines. A program that is run repeatedly.
I sometimes throw things,
Routine - a throwing routine for catchers? still looking
and at other times help fix broken parts.
Routine - a routine can be used to run maintenance on something.
When away I might reject you,
Routine - when you're away you no longer have a routine
but in election day you are sure to hear from me.
Routine - not sure still searching. They have routine elections in some countries.
I believe it's
Exit
I am in theaters
Exit stage left, exit signs are ubiquitous in theaters.
and in computer programs
All programs can exit either smoothly...
I sometimes throw things,
... or by throwing an error.
and at other times help fix broken parts.
If a program gives helpful error information while exiting, it can help to fix the program.
When away I might reject you,
You may be rejected trying to enter into an "Exit Only" door.
but in election day you are sure to hear from me.
Exit polls are often used to predict election results before the votes are tallied.
I am in theaters
Lights. Foot lights, spot lights, flood lights.
and in computer programs
The best debugging is only possible when light shines into the dark places where the bugs hide.
I sometimes throw things,
Solar sails! Laser propulsion.
and at other times help fix broken parts.
Laser welding.
When away I might reject you,
When you are depressed and sitting in the dark.
but in election day you are sure to hear from me.
The light of truth as revealed by the poles.